diff options
author | Simon Michael <simon@joyful.com> | 2015-09-21 12:40:20 -0700 |
---|---|---|
committer | Simon Michael <simon@joyful.com> | 2015-09-21 12:40:20 -0700 |
commit | 3d8fd6d3def733f72f1e0ca1c88c4771f9b3d91f (patch) | |
tree | 342b5e8169ed01f9517aef3e5c3b1994a18b82c7 /lisp | |
parent | 5f2f8e50b3a8464c58857c334ee10027693c4f78 (diff) | |
parent | 758a224131dcc23147969aa691fb0825470253c5 (diff) | |
download | fork-ledger-3d8fd6d3def733f72f1e0ca1c88c4771f9b3d91f.tar.gz fork-ledger-3d8fd6d3def733f72f1e0ca1c88c4771f9b3d91f.tar.bz2 fork-ledger-3d8fd6d3def733f72f1e0ca1c88c4771f9b3d91f.zip |
Merge pull request #432 from Fuco1/fix-amount-regex
Fix amount-regex to properly capture integer part.
Diffstat (limited to 'lisp')
-rw-r--r-- | lisp/ledger-regex.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/ledger-regex.el b/lisp/ledger-regex.el index 5d525d95..cf86b2f9 100644 --- a/lisp/ledger-regex.el +++ b/lisp/ledger-regex.el @@ -27,8 +27,8 @@ (defconst ledger-amount-regex (concat "\\( \\|\t\\| \t\\)[ \t]*-?" "\\([A-Z$€£₹_(]+ *\\)?" - "\\(-?[0-9,\\.]+?\\)" - "\\(.[0-9)]+\\)?" + "\\(-?[0-9,]+\\)" + "\\(\\.[0-9)]+\\)?" "\\( *[[:word:]€£₹_\"]+\\)?" "\\([ \t]*[@={]@?[^\n;]+?\\)?" "\\([ \t]+;.+?\\|[ \t]*\\)?$")) |