summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDan Allen <dan.j.allen@gmail.com>2023-11-06 16:53:42 -0700
committerGitHub <noreply@github.com>2023-11-06 16:53:42 -0700
commit4de6b4c37c5d812b18a9255c5e780bf7ae952f52 (patch)
tree432ddc44fcc996e2b005a340e5ea23c9d71ea3c4 /lib
parent87e75f343a9c85eb6ead48f32d82c60008e2f486 (diff)
resolves #3535 nested dlist attached using list continuation should not consume detached paragraph (PR #4513)
Diffstat (limited to 'lib')
-rw-r--r--lib/asciidoctor/parser.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/asciidoctor/parser.rb b/lib/asciidoctor/parser.rb
index c1983fbf..8743b75e 100644
--- a/lib/asciidoctor/parser.rb
+++ b/lib/asciidoctor/parser.rb
@@ -1486,7 +1486,7 @@ class Parser
(ch0 == '[' && (BlockAttributeLineRx.match? this_line)) || (ch0 == ':' && (AttributeEntryRx.match? this_line))
buffer << this_line
else
- if (nested_list_type = (within_nested_list ? [:dlist] : NESTABLE_LIST_CONTEXTS).find {|ctx| ListRxMap[ctx].match? this_line })
+ if (nested_list_type = (within_nested_list ? [:dlist] : NESTABLE_LIST_CONTEXTS).find {|ctx| ListRxMap[ctx] =~ this_line })
within_nested_list = true
if nested_list_type == :dlist && $3.nil_or_empty?
# get greedy again