Skip to content

Fix matching of \N #375

Open
Open
@hamishknight

Description

@hamishknight

\N currently uses _CharacterClassModel and is defined as an inverted newline sequence. However this doesn't seem correct as it shouldn't be affected by the options that change what \R matches. It seems like it ought to use emitAny() instead, as it should be identical to . except not being affected by (?s) (i.e never matching a newline).

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions