Skip to content

Invalid regular expression pattern provided #425

@mtangoo

Description

@mtangoo

What happened?

QC tries to do mass replace and gives message:

 x  SearchText {"pattern":"ApiResponse\\\\("}      
Invalid regular expression pattern provided: ApiResponse\\(. Error: Invalid regular expression: /ApiResponse\\(/: Unterminated group                          
✦ Let me search for the old ApiResponse constructor pattern:

And then all dies right there. does not continue.

Am using latest version of qc

What did you expect to happen?

The tool call to go smoothly and search fine

Client information

Details
$ qwen /about
 About Qwen Code                                                                 │
│                                                                                 │
│ CLI Version                 0.0.8                                               │
│ Git Commit                  87ceb871                                            │
│ Model                       qwen3-coder-plus                                    │
│ Sandbox                     no sandbox                                          │
│ OS                          darwin                                              │
│ Auth Method                 qwen-oauth

Login information

No response

Anything else we need to know?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    status/need-informationMore information is needed to resolve this issue.type/bugSomething isn't working as expected

    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