]> git.eshelyaron.com Git - emacs.git/commitdiff
Revert "Don't complain about the regexp "[:-:]""
authorMattias Engdegård <mattiase@acm.org>
Thu, 27 Feb 2020 17:29:43 +0000 (18:29 +0100)
committerMattias Engdegård <mattiase@acm.org>
Thu, 27 Feb 2020 17:58:05 +0000 (18:58 +0100)
This reverts commit 3766bf728a43933083f4525970bcf9fdace3838d.

src/regex-emacs.c
test/src/regex-emacs-tests.el

index 794958eb461c1954ced6aa10c8ac11f65e6b0c7c..38824370e056cc78eb332537b402b13cafb231d6 100644 (file)
@@ -2007,7 +2007,7 @@ regex_compile (re_char *pattern, ptrdiff_t size,
             if (*p == ':')
               {
                 re_char *q = p + 1;
-                while (q != pend && *q != ']' && *q != '-')
+                while (q != pend && *q != ']')
                   {
                     if (*q == ':')
                       {
index f1c703ab8bd6937f7ffaa7561ab495e3e7a17ef8..661d416e6a72b1562e0027ade6439525d3fd53b3 100644 (file)
@@ -806,7 +806,6 @@ This evaluates the TESTS test cases from glibc."
 (ert-deftest regexp-invalid ()
   ;; relint suppression: Duplicated
   (should-error (string-match "[:space:]" "")
-                :type 'invalid-regexp)
-  (should (equal (string-match "[:-:]" "a-:") 2)))
+                :type 'invalid-regexp))
 
 ;;; regex-emacs-tests.el ends here