branch: externals/relint
commit 7a1b632f65baff84ed862decef2383ed63f3bd7b
Author: Mattias Engdegård <matti...@acm.org>
Commit: Mattias Engdegård <matti...@acm.org>

    Add wildcard-to-regexp as 'pure' function
---
 relint.el | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/relint.el b/relint.el
index e1d9c27..0147bf0 100644
--- a/relint.el
+++ b/relint.el
@@ -171,7 +171,7 @@
 (defvar relint--regexp-functions)
 
 ;; Functions that are safe to call during evaluation.
-;; With some exceptions (noted), these are pure.
+;; Except for altering the match state, these are pure.
 ;; More functions could be added if there is evidence that it would
 ;; help in evaluating more regexp strings.
 (defconst relint--safe-functions
@@ -191,10 +191,8 @@
     null not
     eq eql equal
     string-equal string= string< string-lessp char-equal string-match-p
-
-    ; These alter the match state.
     string-match split-string replace-regexp-in-string
-
+    wildcard-to-regexp
     combine-and-quote-strings split-string-and-unquote
     string-join string-trim-left string-trim-right string-trim
     string-prefix-p string-suffix-p

Reply via email to