Skip to content

Inconsistent escaping in the exclude files #23

@bgolding355

Description

@bgolding355

The problem

The characters " and ' need to be escaped in the exclude files. Given that these are not special characters in Regex there is no reason why a user should need to do this

The solution

Not escaping " and ' should work

Example

Lets say that I have a file that looks like this:

password=123259807534
password2="4401259804330"

And none of these are actually secrets. To solve this, I might want to exclude these lines with something like:

password\d?="?\d+"?

But this will not work. A user will instead need to do:

password\d?=\"?\d+\"?

Which is not at all intuitive.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions