summaryrefslogtreecommitdiff
path: root/lisp/ledger-regex.el
diff options
context:
space:
mode:
authorCraig Earls <enderw88@gmail.com>2014-09-10 20:47:23 -0700
committerCraig Earls <enderw88@gmail.com>2014-09-10 20:47:23 -0700
commitec457f0ad722cf086931d31d41bad6a54be3194d (patch)
tree35627a3d88e6f6b4fb44c16c846d079a4c5138bd /lisp/ledger-regex.el
parent8be2c706fbc20f5a57632fc2e219315e4539d3e4 (diff)
downloadfork-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.el2
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
))