Skip to content

Commit 81d06e1

Browse files
authored
docs: Fix unescaped [ in character class
Compiling the regex as it was documented before results in: > Syntax("Error parsing regex near \'-/:-@[-`{-\' at character offset 7: Use of unescaped \'[\' in character class is not allowed.")
1 parent df48ddc commit 81d06e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ These classes are based on the definitions provided in
430430
[[:graph:]] graphical ([!-~])
431431
[[:lower:]] lower case ([a-z])
432432
[[:print:]] printable ([ -~])
433-
[[:punct:]] punctuation ([!-/:-@[-`{-~])
433+
[[:punct:]] punctuation ([!-/:-@\[-`{-~])
434434
[[:space:]] whitespace ([\t\n\v\f\r ])
435435
[[:upper:]] upper case ([A-Z])
436436
[[:word:]] word characters ([0-9A-Za-z_])

0 commit comments

Comments
 (0)