lib/linguist/shebang.rb in github-linguist-4.8.0 vs lib/linguist/shebang.rb in github-linguist-4.8.1

- old
+ new

@@ -40,13 +40,13 @@ # Interpreter was /usr/bin/env with no arguments return unless script # "python2.6" -> "python2" - script.sub! /(\.\d+)$/, '' + script.sub!(/(\.\d+)$/, '') # #! perl -> perl - script.sub! /^#!\s*/, '' + script.sub!(/^#!\s*/, '') # Check for multiline shebang hacks that call `exec` if script == 'sh' && data.lines.first(5).any? { |l| l.match(/exec (\w+).+\$0.+\$@/) } script = $1