We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 95140ae commit 1e49a14Copy full SHA for 1e49a14
crates/pgt_lexer/src/lib.rs
@@ -67,7 +67,7 @@ static PATTERN_LEXER: LazyLock<Regex> = LazyLock::new(|| {
67
{
68
// On Windows, treat \r\n as a single newline token
69
// and treat \r as a whitespace token
70
- Regex::new(r"(?P<whitespace> (+|\r))|(?P<newline>(\r\n|\n)+)|(?P<tab>\t+)").unwrap()
+ Regex::new(r"(?P<whitespace> ( |\r)+)|(?P<newline>(\r\n|\n)+)|(?P<tab>\t+)").unwrap()
71
}
72
#[cfg(not(windows))]
73
0 commit comments