From 298331103c96101f5b800eba5124e16c94b6812d Mon Sep 17 00:00:00 2001 From: Kyle Meyer Date: Sun, 15 Mar 2020 14:51:21 -0400 Subject: km/magit-show-commit-at-point: Convert regexp to rx --- lisp/km-magit.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lisp/km-magit.el b/lisp/km-magit.el index 07e1bbc..a42b22c 100644 --- a/lisp/km-magit.el +++ b/lisp/km-magit.el @@ -73,7 +73,9 @@ project, or 3) an commit object for the hash at point doesn't exist in the current project." (interactive "P") (if (save-excursion (skip-chars-backward "[[:xdigit:]]") - (looking-at "\\b[[:xdigit:]]\\{4,40\\}\\b")) + (looking-at (rx word-boundary + (repeat 4 40 xdigit) + word-boundary))) (let* ((hash (match-string-no-properties 0)) (project (and (or choose-project -- cgit v1.2.3