Skip to content

Case insensitivity? #127

@jai

Description

@jai

Hi - first of all thanks for this action/code.

I'm using it to...well, find a comment :) and I was trying to make the search case-insensitive.

In the regex, I've tried:

\^.*no-experiment.*$\gi << silently fails (no error, but doesn't find "no-experiment" or "no-experimenT")

(?i)^.*no-experiment.*$ << throws an error

The error from the second regex is:

Error: Invalid regular expression: /(?i)^.*no-experiment.*$/: Invalid group

So it seems that the regex start/end /.../ are being added when the regex is parsed, so I'm unable to add anything outside the regex start/end (no flags i.e. case insensitive).

Do you know of a way I can achieve above? Or I can also submit a PR to make the search for body-includes case insensitive if it wasn't intended to be case sensitive (is it?)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions