Skip to content

[2.0]: dont use character classes in patterns #988

Description

@jkowalleck

per https://json-schema.org/understanding-json-schema/reference/regular_expressions

Use only standard escapes like \n, \r, \t and keep in mind that you also need to do JSON escaping.

we already do this here


so character classes are not universal - some regex engines just dont support them.
we should take care of this , and use the custom character classes in these cases.
like [0-9] for \d

things to fix:

tooling

have a QA tool that asserts that only those common/standard regex patterns are used

Metadata

Metadata

Assignees

Labels

CDX 2.0related to release v2.0chore: QAA chore related to Quality Assurancedefect

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions