emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/evil-numbers d37c9812a1 024/145: Remove superflous but mal


From: ELPA Syncer
Subject: [nongnu] elpa/evil-numbers d37c9812a1 024/145: Remove superflous but malicious check.
Date: Thu, 6 Jan 2022 03:00:15 -0500 (EST)

branch: elpa/evil-numbers
commit d37c9812a19896d78d6630b299514bfa8792dac7
Author: Michael Markert <markert.michael@googlemail.com>
Commit: Michael Markert <markert.michael@googlemail.com>

    Remove superflous but malicious check.
    
    Fixes bug #2.
    
    Signed-off-by: Michael Markert <markert.michael@googlemail.com>
---
 evil-numbers.el | 11 ++++-------
 1 file changed, 4 insertions(+), 7 deletions(-)

diff --git a/evil-numbers.el b/evil-numbers.el
index 2a4f716bf1..fabf853184 100644
--- a/evil-numbers.el
+++ b/evil-numbers.el
@@ -103,13 +103,10 @@ hexadecimal 0[xX][0-9a-fA-F]+, e.g. 0xBEEF or 0Xcafe
 decimal: [0-9]+, e.g. 42 or 23"
   (or
    ;; numbers or format specifier in front
-   (and
-    (looking-back (rx (or (+? digit)
-                          (and "0" (or (and (in "bB") (*? (in "01")))
-                                       (and (in "oO") (*? (in "0-7")))
-                                       (and (in "xX") (*? (in digit 
"A-Fa-f"))))))))
-    ;; being on a specifier is handled in progn
-    (not (looking-at "[bBoOxX]")))
+   (looking-back (rx (or (+? digit)
+                        (and "0" (or (and (in "bB") (*? (in "01")))
+                                  (and (in "oO") (*? (in "0-7")))
+                                  (and (in "xX") (*? (in digit "A-Fa-f"))))))))
    ;; search for number in rest of line
    ;; match 0 of specifier or digit, being in a literal and after specifier is
    ;; handled above



reply via email to

[Prev in Thread] Current Thread [Next in Thread]