mirror of
https://github.com/Start9Labs/registry.git
synced 2026-04-04 21:59:43 +00:00
fix lookup of device value
This commit is contained in:
@@ -252,5 +252,4 @@ areRegexMatchesEqual textMap (PackageDevice regexMap) =
|
|||||||
checkMatch :: (Text, RegexPattern) -> Bool
|
checkMatch :: (Text, RegexPattern) -> Bool
|
||||||
checkMatch (key, regexPattern) =
|
checkMatch (key, regexPattern) =
|
||||||
case MM.lookup key textMap of
|
case MM.lookup key textMap of
|
||||||
_ : xs -> or $ regexMatch regexPattern <$> xs
|
val -> or $ regexMatch regexPattern <$> val
|
||||||
[] -> False
|
|
||||||
Reference in New Issue
Block a user