parsing: don't allow = in unquoted commodity symbols, fixes commodity-less balance assertion amounts
This commit is contained in:
parent
74eac84b1a
commit
5685b3dc9c
@ -18,7 +18,7 @@ import Hledger.Utils
|
||||
|
||||
|
||||
-- characters than can't be in a non-quoted commodity symbol
|
||||
nonsimplecommoditychars = "0123456789-.@;\n \"{}" :: String
|
||||
nonsimplecommoditychars = "0123456789-.@;\n \"{}=" :: String
|
||||
|
||||
quoteCommoditySymbolIfNeeded s | any (`elem` nonsimplecommoditychars) s = "\"" ++ s ++ "\""
|
||||
| otherwise = s
|
||||
|
||||
Loading…
Reference in New Issue
Block a user