we (web engine): Experimental web browser project to understand the limits of Claude
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

Fix Dot matching to use is_line_terminator for all ECMAScript line terminators

The Dot (.) without the s flag should not match U+2028 (LINE SEPARATOR)
and U+2029 (PARAGRAPH SEPARATOR) per the ECMAScript spec, not just \n
and \r. Use the existing is_line_terminator helper for consistency.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

+1 -1
+1 -1
crates/js/src/regex.rs
··· 785 785 Node::Dot => { 786 786 if pos < ctx.chars.len() { 787 787 let ch = ctx.chars[pos]; 788 - if ctx.flags.dot_all || (ch != '\n' && ch != '\r') { 788 + if ctx.flags.dot_all || !is_line_terminator(ch) { 789 789 Some(pos + 1) 790 790 } else { 791 791 None