Fixed Regexp.new syntax
parent
40358c906a
commit
ebab7cd156
|
@ -10,7 +10,7 @@ class FrontmatterHandler
|
||||||
# CONVENIENCE FUNCTIONS #
|
# CONVENIENCE FUNCTIONS #
|
||||||
|
|
||||||
def self.unirex(str)
|
def self.unirex(str)
|
||||||
Regexp.new str, false, 'um'
|
Regexp.new str, Regexp::MULTILINE, 'u'
|
||||||
end
|
end
|
||||||
def self.rexstr(exp)
|
def self.rexstr(exp)
|
||||||
'(?:' + exp.source + ')'
|
'(?:' + exp.source + ')'
|
||||||
|
|
Loading…
Reference in New Issue