@@ -167,7 +167,7 @@ val Heuristics = mapOf<String, (List<String>) -> ExtractorInterface?>(
167
167
" f" to { lines ->
168
168
val buf = toBuf(lines)
169
169
if (ForthRegex .matches(buf)) CommonExtractor (" forth" )
170
- else if (buf.contains(" flowop" )) CommonExtractor (" filebench WML " )
170
+ else if (buf.contains(" flowop" )) CommonExtractor (" filebench_wml " )
171
171
else if (FortranRegex .matches(buf)) CommonExtractor (" fortran" )
172
172
else null
173
173
},
@@ -260,7 +260,7 @@ val Heuristics = mapOf<String, (List<String>) -> ExtractorInterface?>(
260
260
" inc" to { lines ->
261
261
val buf = toBuf(lines)
262
262
if (Regex (" ^<\\ ?(?:php)?" ).matches(buf)) PhpExtractor ()
263
- else if (Regex (" ^\\ s*#(declare|local|macro|while)\\ s" ).matches(buf)) CommonExtractor (" POV-Ray SDL " )
263
+ else if (Regex (" ^\\ s*#(declare|local|macro|while)\\ s" ).matches(buf)) CommonExtractor (" pov-ray_sdl " )
264
264
else null
265
265
},
266
266
" inl" to { _ ->
@@ -337,7 +337,7 @@ val Heuristics = mapOf<String, (List<String>) -> ExtractorInterface?>(
337
337
if (Regex (" (^\\ s*module)|let rec |match\\ s+(\\ S+\\ s)+with" ).matches(buf))
338
338
CommonExtractor (" ocaml" )
339
339
else if (Regex (" => |case\\ s+(\\ S+\\ s)+of" ).matches(buf))
340
- CommonExtractor (" standard ML " )
340
+ CommonExtractor (" standard_ml " )
341
341
else null
342
342
},
343
343
" mli" to { _ ->
@@ -397,7 +397,7 @@ val Heuristics = mapOf<String, (List<String>) -> ExtractorInterface?>(
397
397
val buf = toBuf(lines)
398
398
if (Perl5Regex .matches(buf)) CommonExtractor (" perl" )
399
399
else if (Perl6Regex .matches(buf)) CommonExtractor (" perl6" )
400
- else if (Regex (" ^\\ s*\\ /\\ * XPM \\ *\\ /" ).matches(buf)) CommonExtractor (" XPM " )
400
+ else if (Regex (" ^\\ s*\\ /\\ * XPM \\ *\\ /" ).matches(buf)) CommonExtractor (" xpm " )
401
401
else null
402
402
},
403
403
" pom" to { _ ->
@@ -416,7 +416,7 @@ val Heuristics = mapOf<String, (List<String>) -> ExtractorInterface?>(
416
416
},
417
417
" props" to { lines ->
418
418
val buf = toBuf(lines)
419
- if (XMLPropsRegex .matches(buf)) CommonExtractor (" XML " )
419
+ if (XMLPropsRegex .matches(buf)) CommonExtractor (" xml " )
420
420
else if (Regex (" \\ w+\\ s*=\\ s*" , RegexOption .IGNORE_CASE ).matches(buf)) CommonExtractor (" ini" )
421
421
else null
422
422
},
@@ -516,15 +516,15 @@ val Heuristics = mapOf<String, (List<String>) -> ExtractorInterface?>(
516
516
CommonExtractor (" tex" )
517
517
},
518
518
" ts" to { lines ->
519
- if (Regex (" <TS\\ b" ).matches(toBuf(lines))) CommonExtractor (" XML " )
519
+ if (Regex (" <TS\\ b" ).matches(toBuf(lines))) CommonExtractor (" xml " )
520
520
else CommonExtractor (" typescript" )
521
521
},
522
522
" tsx" to { lines ->
523
523
val buf = toBuf(lines)
524
524
if (Regex (" ^\\ s*(import.+(from\\ s+|require\\ ()['\" ]react|\\ /\\ /\\ /\\ s*<reference\\ s)" ).matches(buf))
525
525
CommonExtractor (" typescript" )
526
526
else if (Regex (" ^\\ s*<\\ ?xml\\ s+version" , RegexOption .IGNORE_CASE ).matches(buf))
527
- CommonExtractor (" XML " )
527
+ CommonExtractor (" xml " )
528
528
else null
529
529
},
530
530
" v" to { _ ->
0 commit comments