Skip to content

Commit 4859e8d

Browse files
committed
Revert "Don't complain about the regexp "[:-:]""
This reverts commit 3766bf7.
1 parent 77f69a9 commit 4859e8d

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/regex-emacs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2007,7 +2007,7 @@ regex_compile (re_char *pattern, ptrdiff_t size,
20072007
if (*p == ':')
20082008
{
20092009
re_char *q = p + 1;
2010-
while (q != pend && *q != ']' && *q != '-')
2010+
while (q != pend && *q != ']')
20112011
{
20122012
if (*q == ':')
20132013
{

test/src/regex-emacs-tests.el

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -806,7 +806,6 @@ This evaluates the TESTS test cases from glibc."
806806
(ert-deftest regexp-invalid ()
807807
;; relint suppression: Duplicated
808808
(should-error (string-match "[:space:]" "")
809-
:type 'invalid-regexp)
810-
(should (equal (string-match "[:-:]" "a-:") 2)))
809+
:type 'invalid-regexp))
811810

812811
;;; regex-emacs-tests.el ends here

0 commit comments

Comments
 (0)