mirror of
https://github.com/hkalexling/Mango.git
synced 2025-08-04 20:05:29 -04:00
Allow spaces in patterns
This commit is contained in:
parent
f6f09c54bc
commit
711add74ef
@ -69,7 +69,7 @@ module Rename
|
|||||||
if ['[', ']', '{', '}', '|'].includes?(char) && !chars.empty?
|
if ['[', ']', '{', '}', '|'].includes?(char) && !chars.empty?
|
||||||
string = chars.join
|
string = chars.join
|
||||||
if !pattern.nil?
|
if !pattern.nil?
|
||||||
pattern.push Variable.new string
|
pattern.push Variable.new string.strip
|
||||||
elsif !group.nil?
|
elsif !group.nil?
|
||||||
group.push string
|
group.push string
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user