lib/asciidoctor/doctest/example.rb in asciidoctor-doctest-2.0.0.beta.2 vs lib/asciidoctor/doctest/example.rb in asciidoctor-doctest-2.0.0.beta.3
- old
+ new
@@ -52,10 +52,10 @@
name.flatten!
@group_name, @local_name = name.one? ? name.first.split(NAME_SEPARATOR, 2) : name
end
##
- # @param pattern [String] the glob pattern (e.g. +block_*:with*+).
+ # @param pattern [String] the glob pattern (e.g. +inline_*:with*+).
# @return [Boolean] +true+ if the name matches against the +pattern+,
# +false+ otherwise.
def name_match?(pattern)
globs = pattern.split(NAME_SEPARATOR, 2)
[group_name, local_name].zip(globs).all? do |name, glob|