Skip to content

Commit

Permalink
Fix 1.9 string grep
Browse files Browse the repository at this point in the history
  • Loading branch information
josh committed May 9, 2012
1 parent 35fe445 commit 2729f22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/linguist/blob_helper.rb
Expand Up @@ -470,7 +470,7 @@ def guess_m_language
Language['Objective-C']

# Matlab file function or class or comments
elsif lines.any? && lines.first.grep(/^\s*(function |classdef )/).any? || lines.grep(/^\s*%/).any?
elsif lines.any? && lines.first.match(/^\s*(function |classdef )/) || lines.grep(/^\s*%/).any?
Language['Matlab']

# Fallback to Objective-C, don't want any Matlab false positives
Expand Down

0 comments on commit 2729f22

Please sign in to comment.