From b71d4a1efe5a2b939ab94a949f3152dcfd352751 Mon Sep 17 00:00:00 2001 From: Max Leske <250711+theseion@users.noreply.github.com> Date: Wed, 24 Jul 2024 21:07:48 +0200 Subject: [PATCH] chore: fix typo MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Felipe Zipitría <3012076+fzipi@users.noreply.github.com> --- content/development/contribution_guidelines.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/development/contribution_guidelines.md b/content/development/contribution_guidelines.md index ab5ed2df..e14bcbb9 100644 --- a/content/development/contribution_guidelines.md +++ b/content/development/contribution_guidelines.md @@ -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