Commit e011fd6b authored by Karl Heuer's avatar Karl Heuer
Browse files

(regexp-opt-group): Avoid infinite

recursion on bogus input.
parent a8197cfe
......@@ -141,7 +141,9 @@ in REGEXP."
(open-charset (if lax "" open-group))
(close-charset (if lax "" close-group)))
;; Protect against user-stupidity... could call error here
((null strings)
;; If there is only one string, just return it.
((= (length strings) 1)
(if (= (length (car strings)) 1)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment