summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lisp/ldg-regex.el6
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/ldg-regex.el b/lisp/ldg-regex.el
index 226475df..c17582eb 100644
--- a/lisp/ldg-regex.el
+++ b/lisp/ldg-regex.el
@@ -61,13 +61,13 @@
"^--.+?\\($\\|[ ]\\)")
(defconst ledger-account-any-status-regex
- "^[ \t]+\\([*!]\\s-+\\)?\\([[(]?.+?\\)\\(\t\\|\n\\| [ \t]\\)")
+ "^[ \t]+\\([*!]\\s-*\\)?\\([^ ;].*?\\)\\( \\|$\\)")
(defconst ledger-account-pending-regex
- "\\(^[ \t]+\\)\\(!.+?\\)\\( \\|$\\)")
+ "\\(^[ \t]+\\)\\(!\\s-*.*?\\)\\( \\|$\\)")
(defconst ledger-account-cleared-regex
- "\\(^[ \t]+\\)\\(\\*.+?\\)\\( \\|$\\)")
+ "\\(^[ \t]+\\)\\(*\\s-*.*?\\)\\( \\|$\\)")