diff options
author | Craig Earls <enderw88@gmail.com> | 2014-09-10 20:47:23 -0700 |
---|---|---|
committer | Craig Earls <enderw88@gmail.com> | 2014-09-10 20:47:23 -0700 |
commit | ec457f0ad722cf086931d31d41bad6a54be3194d (patch) | |
tree | 35627a3d88e6f6b4fb44c16c846d079a4c5138bd /lisp/ledger-regex.el | |
parent | 8be2c706fbc20f5a57632fc2e219315e4539d3e4 (diff) | |
download | fork-ledger-ec457f0ad722cf086931d31d41bad6a54be3194d.tar.gz fork-ledger-ec457f0ad722cf086931d31d41bad6a54be3194d.tar.bz2 fork-ledger-ec457f0ad722cf086931d31d41bad6a54be3194d.zip |
Fix ledger-post-regex so that it would recognize integer amounts
Diffstat (limited to 'lisp/ledger-regex.el')
-rw-r--r-- | lisp/ledger-regex.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/ledger-regex.el b/lisp/ledger-regex.el index 460b50ce..aa76dd67 100644 --- a/lisp/ledger-regex.el +++ b/lisp/ledger-regex.el @@ -343,7 +343,7 @@ (defconst ledger-posting-regex (concat "^[ \t]+ ?" ;; initial white space "\\([*!]\\)? ?" ;; state, subexpr 1 - "\\([[:word:]: ]+\\(\n\\|[ \t][ \t]\\)\\)" ;; account, subexpr 2 + "\\([[:word:]: ]+?\\(\n\\|[ \t][ \t]\\)\\)" ;; account, subexpr 2 "\\([^;\n]*\\)" ;; amount, subexpr 4 "\\(.*\\)" ;; comment, subexpr 5 )) |