lib/unwrappr/lock_file_diff.rb in unwrappr-0.3.3 vs lib/unwrappr/lock_file_diff.rb in unwrappr-0.3.4
- old
+ new
@@ -61,10 +61,10 @@
def extract_gem_and_change_type(line)
# We only care about lines like this:
# '+ websocket-driver (0.6.5)'
# Careful not to match this (note the wider indent):
# '+ websocket-extensions (>= 0.1.0)'
- pattern = /^(?<change_type>[\+\-]) (?<gem_name>[\w-]+) \(\d/
+ pattern = /^(?<change_type>[\+\-]) (?<gem_name>[\S]+) \(\d/
match = pattern.match(line)
return match[:gem_name], match[:change_type] unless match.nil?
end
end
end