Fix 1.9 string grep

This commit is contained in:
Joshua Peek
2012-05-09 09:58:55 -05:00
parent 35fe44549e
commit 2729f2200d

View File

@@ -470,7 +470,7 @@ module Linguist
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