Commit c13b1a17ccd55ca64877042225a8d34a4b65c520

Thomas de Grivel 2015-06-27T19:38:36

Make regex-lines replace all matches.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/files.lisp b/files.lisp
index 6f8e23c..f8818b5 100644
--- a/files.lisp
+++ b/files.lisp
@@ -179,7 +179,7 @@ Return NIL otherwise."
 (defun regex% (regex string replace match-fun output)
   (cond
     (replace (multiple-value-bind (replaced matched)
-		 (cl-ppcre:regex-replace regex string replace)
+		 (cl-ppcre:regex-replace-all regex string replace :simple-calls t)
 	       (when (and match-fun matched)
 		 (funcall match-fun replaced))
 	       (when output