lib/asciidoctor/rx.rb in asciidoctor-2.0.21 vs lib/asciidoctor/rx.rb in asciidoctor-2.0.22
- old
+ new
@@ -101,9 +101,10 @@
# catch (Exception e) {
# log(e);
# }
# // end::try-catch[]
# NOTE m flag is required for Asciidoctor.js
+ # NOTE the regex checks for \r to account of include files that use Windows newlines
TagDirectiveRx = /\b(?:tag|(e)nd)::(\S+?)\[\](?=$|[ \r])/m
## Attribute entries and references
# Matches a document attribute entry.