Fixed Regexp.new syntax

master
kibigo! 8 years ago
parent 7b1d233f4f
commit 6cbbdc805f
  1. 2
      app/lib/frontmatter_handler.rb

@ -10,7 +10,7 @@ class FrontmatterHandler
# CONVENIENCE FUNCTIONS #
def self.unirex(str)
Regexp.new str, false, 'um'
Regexp.new str, Regexp::MULTILINE, 'u'
end
def self.rexstr(exp)
'(?:' + exp.source + ')'

Loading…
Cancel
Save