Skip to content

Commit

Permalink
fix: use right obfuscating regex
Browse files Browse the repository at this point in the history
  • Loading branch information
blaggacao authored and johnalotoski committed Nov 21, 2023
1 parent 3d2ff16 commit 00944bb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion metadata-server/src/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,4 @@ main = do
unChanLoggingT logChan

obfuscatePasswords :: String -> String
obfuscatePasswords clear = R.subRegex (R.mkRegex "pass=\\S+") clear "pass=*******"
obfuscatePasswords clear = R.subRegex (R.mkRegex "password=\\S+") clear "password=*******"
2 changes: 1 addition & 1 deletion metadata-sync/src/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@ main = do
Sync.write conn tableName state

obfuscatePasswords :: String -> String
obfuscatePasswords clear = R.subRegex (R.mkRegex "pass=\\S+") clear "pass=*******"
obfuscatePasswords clear = R.subRegex (R.mkRegex "password=\\S+") clear "password=*******"
2 changes: 1 addition & 1 deletion metadata-webhook/src/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@ main = do
liftIO $ Warp.run port (appSigned (gitHubKey $ pure key) intf (getFileContent githubToken))

obfuscatePasswords :: String -> String
obfuscatePasswords clear = R.subRegex (R.mkRegex "pass=\\S+") clear "pass=*******"
obfuscatePasswords clear = R.subRegex (R.mkRegex "password=\\S+") clear "password=*******"

0 comments on commit 00944bb

Please sign in to comment.