mirror of
https://github.com/hkalexling/Mango.git
synced 2025-08-03 11:25:29 -04:00
Allow |
character outside of patterns
This commit is contained in:
parent
711add74ef
commit
4cee5faecd
@ -110,6 +110,9 @@ module Rename
|
|||||||
end
|
end
|
||||||
pattern = nil
|
pattern = nil
|
||||||
when '|'
|
when '|'
|
||||||
|
if pattern.nil?
|
||||||
|
chars.push char
|
||||||
|
end
|
||||||
else
|
else
|
||||||
if ESCAPE.includes? char
|
if ESCAPE.includes? char
|
||||||
raise "the character #{char} at position #{i} is not allowed"
|
raise "the character #{char} at position #{i} is not allowed"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user