Allow | character outside of patterns

This commit is contained in:
Alex Ling 2020-05-03 16:30:35 +00:00
parent 711add74ef
commit 4cee5faecd

View File

@ -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"