diff options
Diffstat (limited to 'src/sdp/output_rgx.d')
-rw-r--r-- | src/sdp/output_rgx.d | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/sdp/output_rgx.d b/src/sdp/output_rgx.d index 3abd76a..9959590 100644 --- a/src/sdp/output_rgx.d +++ b/src/sdp/output_rgx.d @@ -6,8 +6,11 @@ template SiSUoutputRgxInit() { struct Rgx { static newline = ctRegex!("\n", "mg"); static space = ctRegex!(`[ ]`, "mg"); + static spaces_line_start = ctRegex!(`^(?P<opening_spaces>[ ]+)`, "mg"); + static spaces_multiple = ctRegex!(`(?P<multiple_spaces>[ ]{2,})`, "mg"); // could be issues for endnotes static two_spaces = ctRegex!(`[ ]{2}`, "mg"); static nbsp_char = ctRegex!(`░`, "mg"); + static nbsp_chars_line_start = ctRegex!(`^░+`, "mg"); static nbsp_and_space = ctRegex!(` [ ]`, "mg"); static nbsp_char_and_space = ctRegex!(`░[ ]`, "mg"); static src_pth = ctRegex!(`^(?P<path>[a-zA-Z0-9._-]+/)*(?P<filename>[a-zA-Z0-9._-]+[.]ss[tm])$`); |