mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 17:50:22 +00:00
Fix for Ruby 1.8.7
Added a test to catch the case better
This commit is contained in:
@@ -438,7 +438,7 @@ module Linguist
|
||||
#
|
||||
# Returns a Language.
|
||||
def guess_gsp_language
|
||||
if lines.grep(/<%|<%@|${|<%|<g:|<meta name="layout"|<r:/).any?
|
||||
if lines.grep(/<%|<%@|\${|<%|<g:|<meta name="layout"|<r:/).any?
|
||||
Language['Groovy Server Pages']
|
||||
else
|
||||
Language['Gosu']
|
||||
|
||||
Reference in New Issue
Block a user