mirror of
https://github.com/hkalexling/Mango.git
synced 2026-01-24 00:03:14 -05:00
Allow | character outside of patterns
This commit is contained in:
@@ -110,6 +110,9 @@ module Rename
|
||||
end
|
||||
pattern = nil
|
||||
when '|'
|
||||
if pattern.nil?
|
||||
chars.push char
|
||||
end
|
||||
else
|
||||
if ESCAPE.includes? char
|
||||
raise "the character #{char} at position #{i} is not allowed"
|
||||
|
||||
Reference in New Issue
Block a user