summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Allen <dan.j.allen@gmail.com>2024-02-28 02:38:08 -0700
committerDan Allen <dan.j.allen@gmail.com>2024-02-28 02:38:08 -0700
commit4dec7ad055b30a5fe983d44019f9e5531a88d43a (patch)
tree4f4dfb66258b9368aaeacc2a4d7b84365c66e81c
parente4bdc42779b351f0aed3a2698546a30b417334e5 (diff)
add note why include tag directive regex checks for \r
-rw-r--r--lib/asciidoctor/rx.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/asciidoctor/rx.rb b/lib/asciidoctor/rx.rb
index b6f6b113..f7293636 100644
--- a/lib/asciidoctor/rx.rb
+++ b/lib/asciidoctor/rx.rb
@@ -104,6 +104,7 @@ module Asciidoctor
# }
# // 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