lib/rubocop/markdown/preprocess.rb in rubocop-md-1.1.0 vs lib/rubocop/markdown/preprocess.rb in rubocop-md-1.2.0
- old
+ new
@@ -9,11 +9,11 @@
class Preprocess
# This is a regexp to extract code blocks from .md files.
#
# Only recognizes backticks-style code blocks.
#
- # Try it: http://rubular.com/r/iJaKBkSrrT
- MD_REGEXP = /^([ \t]*`{3,4})([\w[[:blank:]]]*\n)([\s\S]+?)(^[ \t]*\1[[:blank:]]*\n?)/m.freeze
+ # Try it: https://rubular.com/r/YMqSWiBuh2TKIJ
+ MD_REGEXP = /^([ \t]*`{3,4})([\w[[:blank:]]+]*\n)([\s\S]+?)(^[ \t]*\1[[:blank:]]*\n?)/m.freeze
MARKER = "<--rubocop/md-->"
# See https://github.com/github/linguist/blob/v5.3.3/lib/linguist/languages.yml#L3925
RUBY_TYPES = %w[