Skip to content

Investigate invalid \n|$ regex at end of parser's patterns #1880

@rafalp

Description

@rafalp

\n|$ at the end of pattern will make regex match and consume linebreak at the end of, it preventing ^|\n at the beginning of next pattern to match with it. I need to check all those blocks patterns and make them focus on matching prefix linebreaks only and use look-ahead ((?=\n|$)) at the end.

Metadata

Metadata

Assignees

Labels

area: backendThis issue involves Python, Django or dependency (eg. database)feature: parserParser converts markdown/bbcode strings into other forms

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions