You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Both the docs of regex 1.0.5 and regex-syntax 0.6.2 suggests that [[:blank:]] is equivalent to [ \t], but it is actually wrong as shown in the test program below:
externcrate regex;// 1.0.5fnmain(){let r = regex::Regex::new("[[:blank:]]").unwrap();assert!(!r.is_match("\u{17}"));// unexpectedly panicked}
Ensure `[[:blank:]]` only matches `[ \t]`. It appears that there was
a transcription error when `regex-syntax` was rewritten such that
`[[:blank:]]` ended up matching more than it was supposed to.
Fixes#533
Both the docs of
regex 1.0.5
andregex-syntax 0.6.2
suggests that[[:blank:]]
is equivalent to[ \t]
, but it is actually wrong as shown in the test program below:I believe the error is due to
regex/regex-syntax/src/hir/translate.rs
Lines 1042 to 1045 in 488fe56
line 1043 should read
The text was updated successfully, but these errors were encountered: