Handle more escaped characters in regexps
This commit is contained in:
parent
4720672cfb
commit
01571da30d
2 changed files with 16 additions and 0 deletions
|
|
@ -126,6 +126,16 @@ describe("parsing regex patterns", []() {
|
|||
})
|
||||
},
|
||||
|
||||
{
|
||||
"escaped characters",
|
||||
"\\t\\n\\r",
|
||||
seq({
|
||||
character({ '\t' }),
|
||||
character({ '\n' }),
|
||||
character({ '\r' }),
|
||||
})
|
||||
},
|
||||
|
||||
{
|
||||
"plus repeats",
|
||||
"(ab)+(cd)+",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue