]> git.eshelyaron.com Git - emacs.git/commit
Allow empty argument to `regexp-opt-charset'
authorMattias Engdegård <mattiase@acm.org>
Sat, 29 Jun 2019 09:10:36 +0000 (11:10 +0200)
committerMattias Engdegård <mattiase@acm.org>
Sat, 29 Jun 2019 09:12:27 +0000 (11:12 +0200)
commitf1d414b98f2df3d31abfa710ecbbc0223f73aed1
tree5a7ce1d19a0d32a6af2825501766e88d63bc9914
parent1dfb2f361595076d1a3e61a46b80470caf259b41
Allow empty argument to `regexp-opt-charset'

* test/lisp/emacs-lisp/regexp-opt-tests.el (regexp-opt-charset):
Handle nil argument, and use regexp-quote for singletons.
* lisp/emacs-lisp/regexp-opt.el (regexp-opt-charset): Expand tests.
lisp/emacs-lisp/regexp-opt.el
test/lisp/emacs-lisp/regexp-opt-tests.el