Skip to content

Fix regexp handling #2

@Trott

Description

@Trott

Right now, if no strings in the configuration contain regexp-y things, they will happily be processed as a regular expression. I can't decide if this is a feature or a bug.

If a feature, then the issue is that the output will contain the regexp-y things, like:

Use "Node.js" instead of "Node\b"

That \b is a zero-width word-boundary. Not terribly friendly output. (By the way, the config requires that the backslash be escaped so it will look like no: 'Node\\b'.)

If a bug, then we should find a way to disable it and enable a more explicit "this is a regexp" way of doing things. Also, make sure the regexp-way-of-doing-things has a decent error message for output.

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