Function: majutsu--regexp-char-class
majutsu--regexp-char-class is a natively compiled function defined in
majutsu-jj.el.
Signature
(majutsu--regexp-char-class CHARS)
Documentation
Return CHARS escaped for use inside a regexp character class.
Source Code
;; Defined in /nix/store/jagqw3nms546pad0gxi5f3wsckk6pji7-emacs-packages-deps/share/emacs/site-lisp/majutsu-jj.el
(defun majutsu--regexp-char-class (chars)
"Return CHARS escaped for use inside a regexp character class."
(mapconcat (lambda (ch)
(if (memq ch '(?\[ ?\] ?\\ ?^ ?-))
(concat "\\" (char-to-string ch))
(char-to-string ch)))
chars
""))