Skip to content

Commit

Permalink
chore: fix typo
Browse files Browse the repository at this point in the history
Co-authored-by: Felipe Zipitría <[email protected]>
  • Loading branch information
theseion and fzipi authored Jul 24, 2024
1 parent 2d9bf0c commit b71d4a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content/development/contribution_guidelines.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ If testing a CRS regular expression using a third party tool, it may be useful t

### Vertical Tab Representation

CRS uses `\x0b` to represent the vertical tab in character classes. This is necessary because most regular expressions are generated and simplified using external libraries. These libraries produce output that the generator must convert into a form that is compatible with both PCRE and RE2 compatible engines. In RE2, `\s` does not include `\v\` (which is the case in PCRE), and needs to be added. However, `\v` in PCRE expands to a list of vertical characters and is, therefore, not allowed to start range expressions. Since we only care about the vertical tab we use `\x0b`.
CRS uses `\x0b` to represent the vertical tab in character classes. This is necessary because most regular expressions are generated and simplified using external libraries. These libraries produce output that the generator must convert into a form that is compatible with both PCRE and RE2 compatible engines. In RE2, `\s` does not include `\v` (which is the case in PCRE), and needs to be added. However, `\v` in PCRE expands to a list of vertical characters and is, therefore, not allowed to start range expressions. Since we only care about the vertical tab we use `\x0b`.

### When and Why to Anchor Regular Expressions

Expand Down

0 comments on commit b71d4a1

Please sign in to comment.