1
0
mirror of https://github.com/funamitech/mastodon synced 2024-12-02 16:58:53 +09:00

Remove ignored 'u' parameter on regexp (#392)

This commit is contained in:
Rey Tucker 2018-03-27 11:30:49 -04:00
parent 6af17b79c5
commit 21b586436e

View File

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