lib/slim_lint/document.rb in slim_lint-0.23.0 vs lib/slim_lint/document.rb in slim_lint-0.24.0
- old
+ new
@@ -65,10 +65,10 @@
# From the start of the line
^
# Second capture match --- or ... followed by optional whitespace
# and newline. This matches the closing --- for the frontmatter.
(---|\.\.\.)\s*$\n?/mx
- source = $POSTMATCH
+ source = ::Regexp.last_match.post_match
end
source
end
end