utils/glob.rb in pdd-0.21.2 vs utils/glob.rb in pdd-0.21.3
- old
+ new
@@ -26,10 +26,10 @@
@glob_string = glob_string
end
# rubocop:disable Metrics/CyclomaticComplexity
def to_regexp
- chars = @glob_string.gsub(%r{(\*\*\/\*)|(\*\*)}, '*').split('')
+ chars = @glob_string.gsub(%r{(\*\*/\*)|(\*\*)}, '*').chars
in_curlies = 0, escaping = false
chars.map do |char|
if escaping
escaping = false
return char