mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-11-23 14:38:07 +01:00
Fixed Regexp.new syntax
This commit is contained in:
parent
7b1d233f4f
commit
6cbbdc805f
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue