Skip to content

Commit 5442c0b

Browse files
committed
extract the final file extension only
1 parent 4884c10 commit 5442c0b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

builder/src/Build.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -962,7 +962,7 @@ findLoc :: Env -> FilePath -> FilePath -> Either Exit.BuildProjectProblem Locati
962962
findLoc (Env _ root _ srcDirs _ _) path absolutePath =
963963
let
964964
(dirs, file) = FP.splitFileName absolutePath
965-
(final, ext) = break (=='.') file
965+
(final, ext) = FP.splitExtension file
966966
in
967967
if ext /= ".elm"
968968
then Left (Exit.BP_WithBadExtension path)

0 commit comments

Comments
 (0)