Fix ledger-split-commodities to handle integer balances
This commit is contained in:
parent
0d0e996e07
commit
6a753e155e
1 changed files with 2 additions and 2 deletions
|
|
@ -39,8 +39,8 @@
|
|||
(insert str)
|
||||
(goto-char (point-min))
|
||||
(if (assoc "decimal-comma" ledger-environment-alist)
|
||||
(setq number-regex "-?[1-9][0-9.]*[,][0-9]*")
|
||||
(setq number-regex "-?[1-9][0-9,]*[.][0-9]*"))
|
||||
(setq number-regex "-?[1-9][0-9.]*[,]?[0-9]*")
|
||||
(setq number-regex "-?[1-9][0-9,]*[.]?[0-9]*"))
|
||||
(cond ((re-search-forward number-regex nil t)
|
||||
;; found a decimal number
|
||||
(setq val
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue