mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-12-14 16:28:59 +00:00
Fixed Regexp.new syntax
This commit is contained in:
@@ -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 + ')'
|
||||
|
||||
Reference in New Issue
Block a user