fixed regular expression in oracle-client

This commit is contained in:
Lars Brünjes 2021-07-27 00:14:05 +02:00
parent 724f9cb7db
commit 01ed74dc2d
No known key found for this signature in database
GPG key ID: B488B9045DC1A087

View file

@ -51,7 +51,7 @@ getExchangeRate = runReq defaultHttpConfig $ do
NoReqBody
bsResponse
mempty
let priceRegex = "priceValue___11gHJ\">\\$([\\.0-9]*)" :: ByteString
let priceRegex = "priceValue___11gHJ \">\\$([\\.0-9]*)" :: ByteString
(_, _, _, [bs]) = responseBody v =~ priceRegex :: (ByteString, ByteString, ByteString, [ByteString])
d = read $ unpack bs :: Double
x = round $ 1_000_000 * d