File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -309,7 +309,9 @@ parseQueryTerm _ (T.stripPrefix "status:" -> Just s) =
309
309
case parseStatus s of Left e -> Left $ " \" status:" ++ T. unpack s++ " \" gave a parse error: " ++ e
310
310
Right st -> Right (StatusQ st, [] )
311
311
parseQueryTerm _ (T. stripPrefix " real:" -> Just s) = Right (Real $ parseBool s || T. null s, [] )
312
- parseQueryTerm _ (T. stripPrefix " amt:" -> Just s) = Right (Amt ord q, [] ) where (ord, q) = either error' id $ parseAmountQueryTerm s -- PARTIAL:
312
+ parseQueryTerm _ (T. stripPrefix " amt:" -> Just s) = case parseAmountQueryTerm s of
313
+ Right (ord, q) -> Right (Amt ord q, [] )
314
+ Left err -> Left err
313
315
parseQueryTerm _ (T. stripPrefix " depth:" -> Just s) = (,[] ) <$> parseDepthSpecQuery s
314
316
parseQueryTerm _ (T. stripPrefix " cur:" -> Just s) = (,[] ) . Sym <$> toRegexCI (" ^" <> s <> " $" ) -- support cur: as an alias
315
317
parseQueryTerm _ (T. stripPrefix " tag:" -> Just s) = (,[] ) <$> parseTag s
You can’t perform that action at this time.
0 commit comments