]> git.eshelyaron.com Git - emacs.git/commitdiff
; eliminate backslash duplicate in regexp
authorMattias EngdegÄrd <mattiase@acm.org>
Fri, 21 Jun 2024 15:20:42 +0000 (17:20 +0200)
committerEshel Yaron <me@eshelyaron.com>
Fri, 21 Jun 2024 19:01:52 +0000 (21:01 +0200)
* lisp/editorconfig-fnmatch.el (editorconfig-fnmatch--do-translate):
Remove superfluous backslash.

(cherry picked from commit 052d2cd2582dbdd3bb4d4e68d5f4dce588ed06e2)

lisp/editorconfig-fnmatch.el

index cd04088043477c5133973a3eb19fdc336793a383..397e424a6f7487c22a915116bc299e3f5dda5762 100644 (file)
@@ -146,7 +146,7 @@ translation is found for PATTERN."
 
     (while (< index length)
       (if (and (not is-escaped)
-               (string-match "[^]\\*?[{},/\\-]+"
+               (string-match "[^]\\*?[{},/-]+"
                              ;;(string-match "[^]\\*?[{},/\\-]+" "?.a")
                              pattern
                              index)