Merge pull request #1970 from larsbrinkhoff/fr

Add missing ^ in regexp for Frege heuristic
This commit is contained in:
Adam Roben
2015-01-08 13:43:14 -05:00
2 changed files with 2 additions and 1 deletions

View File

@@ -175,7 +175,7 @@ module Linguist
disambiguate "Frege", "Forth", "Text" do |data|
if /^(: |also |new-device|previous )/.match(data)
Language["Forth"]
elsif /\s*(import|module|package|data|type) /.match(data)
elsif /^\s*(import|module|package|data|type) /.match(data)
Language["Frege"]
else
Language["Text"]

View File

@@ -1 +1,2 @@
the green potato=la pomme de terre verte
le nouveau type de musique=the new type of music