mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 17:50:22 +00:00
Merge pull request #1970 from larsbrinkhoff/fr
Add missing ^ in regexp for Frege heuristic
This commit is contained in:
@@ -175,7 +175,7 @@ module Linguist
|
|||||||
disambiguate "Frege", "Forth", "Text" do |data|
|
disambiguate "Frege", "Forth", "Text" do |data|
|
||||||
if /^(: |also |new-device|previous )/.match(data)
|
if /^(: |also |new-device|previous )/.match(data)
|
||||||
Language["Forth"]
|
Language["Forth"]
|
||||||
elsif /\s*(import|module|package|data|type) /.match(data)
|
elsif /^\s*(import|module|package|data|type) /.match(data)
|
||||||
Language["Frege"]
|
Language["Frege"]
|
||||||
else
|
else
|
||||||
Language["Text"]
|
Language["Text"]
|
||||||
|
|||||||
@@ -1 +1,2 @@
|
|||||||
the green potato=la pomme de terre verte
|
the green potato=la pomme de terre verte
|
||||||
|
le nouveau type de musique=the new type of music
|
||||||
|
|||||||
Reference in New Issue
Block a user