Merge pull request #432 from Fuco1/fix-amount-regex

Fix amount-regex to properly capture integer part.
This commit is contained in:
Simon Michael 2015-09-21 12:40:20 -07:00
commit 3d8fd6d3de

View file

@ -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]*\\)?$"))