Merge pull request #2428 from amaanq/regex-whitespace

fix(generate): add Vertical Tab and Form Feed to the whitespace class
This commit is contained in:
Amaan Qureshi 2023-08-07 02:37:57 +01:00 committed by GitHub
commit fc88622b7b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -475,7 +475,9 @@ impl NfaBuilder {
.add_char(' ')
.add_char('\t')
.add_char('\r')
.add_char('\n'),
.add_char('\n')
.add_char('\x0B')
.add_char('\x0C'),
ClassPerlKind::Word => CharacterSet::empty()
.add_char('_')
.add_range('A', 'Z')