Skip to content

Commit

Permalink
fix: Allow different types of EOL in note model template regex (#53)
Browse files Browse the repository at this point in the history
* fix: Allow different types of EOL in note model template regex

* Fix regex, declare groups non-capturing
  • Loading branch information
dominik-oktav authored Aug 24, 2024
1 parent 1426351 commit ab4c47b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion brain_brew/representation/yaml/note_model_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
HTML_FILE = AnkiField("html_file")
BROWSER_HTML_FILE = AnkiField("browser_html_file", default_value=None)

html_separator_regex = r'[\n]{1,}[-]{1,}[\n]{1,}'
html_separator_regex = r'(?:\r\n|\r|\n){1,}[-]{1,}(?:\r\n|\r|\n){1,}'


@dataclass
Expand Down

0 comments on commit ab4c47b

Please sign in to comment.