Skip to content

Bug: Regex quantifier error in voice.mjs location pattern matching #92

@ADITYA-CODE-SOURCE

Description

@ADITYA-CODE-SOURCE

Bug Report

File

js/components/voice.mjs - Line 426

Issue

Regex pattern has incorrect quantifier. The pattern ^send me to+ means "send me to" followed by one or more "o" characters, so it incorrectly matches "send me toooo" instead of "send me to ".

Current Code

const showOnlyPattern = /^take me to\s+|^show me\s+|^send me to+|^fly to/i;

Fix

Change to:
const showOnlyPattern = /^take me to\s+|^show me\s+|^send me to\s+|^fly to\s+/i;


Reported for GSoC 2026 contribution

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions