From 4dec7ad055b30a5fe983d44019f9e5531a88d43a Mon Sep 17 00:00:00 2001 From: Dan Allen Date: Wed, 28 Feb 2024 02:38:08 -0700 Subject: add note why include tag directive regex checks for \r --- lib/asciidoctor/rx.rb | 1 + 1 file changed, 1 insertion(+) 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 -- cgit v1.2.3