Skip to content
Critiq Docs

Search docs

Search documentation pages and rules

correctness.language

Unusual ASCII control characters in regexp pattern

The regular expression pattern embeds low ASCII control characters outside common whitespace.

#Metadata

Rule ID
ts.correctness.regexp-pattern-unusual-control-character
Severity
low
Confidence
0.8
Languages
javascript, typescript
Presets
recommended, strict
Stability
stable
Applies to
file
Tags
correctness, crq-cor-027, language, rules-catalog

#Why it matters

Literal control characters in patterns are hard to read, easy to corrupt in editors, and often indicate copy-paste or encoding mistakes.

#Remediation

Rewrite the pattern using visible escape sequences or character class escapes instead of raw C0 control bytes.

#Repository path

The generated metadata points to critiq-rules/libs/rules/catalog/rules/typescript/ts.correctness.regexp-pattern-unusual-control-character.rule.yaml.