We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f8a7d43 commit 3486f36Copy full SHA for 3486f36
hackage-security/src/Hackage/Security/TUF/Patterns.hs
@@ -126,8 +126,8 @@ matchPattern = go . splitDirectories
126
go [] _ = Nothing
127
go [f] (PatFileConst f') = do guard (f == f')
128
return ()
129
- go [f] (PatFileExt e') = do let (bn, _:e) = splitExtension f
130
- guard $ e == e'
+ go [f] (PatFileExt e') = do let (bn, dotExt) = splitExtension f
+ guard $ dotExt == '.':e'
131
return (bn :- ())
132
go [_] _ = Nothing
133
go (d:p) (PatDirConst d' p') = do guard (d == d')
0 commit comments