Skip to content

Commit bce8a4f

Browse files
committed
Filter-out brackets from contexts to make glob matches consistent
1 parent f6b6b1d commit bce8a4f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kore-rpc-types/src/Kore/Util.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ showHashHex h = let cutoff = 7 in Text.take cutoff . Text.pack $ showHex (fromIn
1919

2020
-- | From a Kore/Booster contextual one-line log message, extract the context prefix
2121
extractLogMessageContext :: Text -> Text
22-
extractLogMessageContext = Text.takeWhile isContextCharacter
22+
extractLogMessageContext = Text.filter (not . isBracket) . Text.takeWhile isContextCharacter
2323
where
2424
isContextCharacter :: Char -> Bool
2525
isContextCharacter c = isHexDigit c || isLower c || isSpace c || isBracket c

0 commit comments

Comments
 (0)