lib/linguist/shebang.rb in github-linguist-4.2.1 vs lib/linguist/shebang.rb in github-linguist-4.2.2
- old
+ new
@@ -17,10 +17,10 @@
# Public: Get the interpreter from the shebang
#
# Returns a String or nil
def self.interpreter(data)
lines = data.lines
- return unless match = /^#! ?(.*)$/.match(lines.first)
+ return unless match = /^#! ?(.+)$/.match(lines.first)
tokens = match[1].split(' ')
script = tokens.first.split('/').last
script = tokens[1] if script == 'env'