summaryrefslogtreecommitdiff
path: root/lisp/ldg-sort.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/ldg-sort.el')
-rw-r--r--lisp/ldg-sort.el5
1 files changed, 2 insertions, 3 deletions
diff --git a/lisp/ldg-sort.el b/lisp/ldg-sort.el
index 5119db5d..b106173b 100644
--- a/lisp/ldg-sort.el
+++ b/lisp/ldg-sort.el
@@ -28,9 +28,8 @@
(defun ledger-next-record-function ()
"Move point to next transaction."
- (if (re-search-forward
- (concat "^[0-9/.=-]+\\(\\s-+\\*\\)?\\(\\s-+(.*?)\\)?\\s-+"
- "\\(.+?\\)\\(\t\\|\n\\| [ \t]\\)") nil t)
+ (if (re-search-forward ledger-sort-next-record-regex
+ nil t)
(goto-char (match-beginning 0))
(goto-char (point-max))))