diff options
author | Kyle Meyer <kyle@kyleam.com> | 2020-03-15 14:51:21 -0400 |
---|---|---|
committer | Kyle Meyer <kyle@kyleam.com> | 2020-04-16 23:54:14 -0400 |
commit | 298331103c96101f5b800eba5124e16c94b6812d (patch) | |
tree | 3bdcc4a0f01de620a306aa1632f823240278cde9 | |
parent | 6cdcd9d60738b3bfa828c5fc469600b21a00bed7 (diff) | |
download | emacs.d-298331103c96101f5b800eba5124e16c94b6812d.tar.gz |
km/magit-show-commit-at-point: Convert regexp to rx
-rw-r--r-- | lisp/km-magit.el | 4 |
1 files changed, 3 insertions, 1 deletions
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 |