]> git.eshelyaron.com Git - emacs.git/commit
Allow string-slice to take zero-length matches
authorLars Ingebrigtsen <larsi@gnus.org>
Wed, 23 Dec 2020 06:45:19 +0000 (07:45 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Wed, 23 Dec 2020 06:45:19 +0000 (07:45 +0100)
commit22c1f00d997d38ba0c453da5f5e9c526d0ac05b0
tree9775eaaf9aefe1196cea7abd3aa9f586a5c99f4c
parent21097cdd32a29a14ba3b1af55cffb1a9180faf26
Allow string-slice to take zero-length matches

* lisp/emacs-lisp/subr-x.el (string-slice): Allow zero-length
matches.  Code adapted from s.el by Magnar Sveen.
lisp/emacs-lisp/subr-x.el
test/lisp/emacs-lisp/subr-x-tests.el