Allow spaces in patterns

This commit is contained in:
Alex Ling 2020-05-03 16:29:54 +00:00
parent f6f09c54bc
commit 711add74ef

View File

@ -69,7 +69,7 @@ module Rename
if ['[', ']', '{', '}', '|'].includes?(char) && !chars.empty?
string = chars.join
if !pattern.nil?
pattern.push Variable.new string
pattern.push Variable.new string.strip
elsif !group.nil?
group.push string
else