summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Kettleborough <g.kettleborough@member.fsf.org>2013-04-15 21:41:02 +0100
committerGeorge Kettleborough <g.kettleborough@member.fsf.org>2013-04-15 21:41:02 +0100
commitdb4731d8a913aabb296ead5212fde8e281cbe5e8 (patch)
tree2cfaef9319d5fad828afd58a0b71e91baeb636d4
parent3ad0f0d8a519d394b228908fc9b34ed7438386c2 (diff)
downloadfork-ledger-db4731d8a913aabb296ead5212fde8e281cbe5e8.tar.gz
fork-ledger-db4731d8a913aabb296ead5212fde8e281cbe5e8.tar.bz2
fork-ledger-db4731d8a913aabb296ead5212fde8e281cbe5e8.zip
Clean up payee regexes
-rw-r--r--lisp/ldg-regex.el8
1 files changed, 4 insertions, 4 deletions
diff --git a/lisp/ldg-regex.el b/lisp/ldg-regex.el
index 736fd811..bf7e6c95 100644
--- a/lisp/ldg-regex.el
+++ b/lisp/ldg-regex.el
@@ -46,16 +46,16 @@
"^[;#|\\*%].*\\|[ \t]+;.*")
(defconst ledger-payee-any-status-regex
- "^[0-9/.=-]+\\(\\s-+\\*\\)?\\(\\s-+(.*?)\\)?\\s-+\\(.+?\\)\\(\t\\|\n\\| [ \t]\\)")
+ "^[0-9]+[-/][-/.=0-9]+\\(\\s-+\\*\\)?\\(\\s-+(.*?)\\)?\\s-+\\(.+?\\)\\s-*\\(;\\|$\\)")
(defconst ledger-payee-pending-regex
- "^[0-9]+[-/][-/.=0-9]+\\s-\\!\\s-+\\(([^)]+)\\s-+\\)?\\([^*].+?\\)\\(;\\|$\\)")
+ "^[0-9]+[-/][-/.=0-9]+\\s-\\!\\s-+\\(([^)]+)\\s-+\\)?\\([^*].+?\\)\\s-*\\(;\\|$\\)")
(defconst ledger-payee-cleared-regex
- "^[0-9]+[-/][-/.=0-9]+\\s-\\*\\s-+\\(([^)]+)\\s-+\\)?\\([^*].+?\\)\\(;\\|$\\)")
+ "^[0-9]+[-/][-/.=0-9]+\\s-\\*\\s-+\\(([^)]+)\\s-+\\)?\\([^*].+?\\)\\s-*\\(;\\|$\\)")
(defconst ledger-payee-uncleared-regex
- "^[0-9]+[-/][-/.=0-9]+\\s-+\\(([^)]+)\\s-+\\)?\\([^*].+?\\)\\(;\\|$\\)")
+ "^[0-9]+[-/][-/.=0-9]+\\s-+\\(([^)]+)\\s-+\\)?\\([^*].+?\\)\\s-*\\(;\\|$\\)")
(defconst ledger-init-string-regex
"^--.+?\\($\\|[ ]\\)")