Skip to content

Pattern match does not seem to work with newlines, possible unescaping issue #1023

Closed
@ssbarnea

Description

@ssbarnea

Apparently ^{{[.\s]*}}$ regex pattern is not correctly applied by the library. Inside JSON this pattern should be represented like "pattern": "^{{[.\\s]*}}$" due to JSON escaping.

Still, when using it I still get validation error that prints the pattern using the unescaped value, which makes me believe that the string was not loaded correctly.

"{{ foo\n bar }}" does not match '^{{[.\\s]*}}$'

Python does not add extra escapes for \s, so it should be a loading issue?

$ python -c "print('a\sb')"
a\sb

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions