We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8e1da6e commit 6eaad6fCopy full SHA for 6eaad6f
misc.lisp
@@ -530,13 +530,16 @@
530
531
(defun =location~ (substring)
532
(lambda (source)
533
- (search substring (location source))))
+ (ppcre:scan substring (location source))))
534
535
(defun http-to-https (source)
536
(let ((location (ppcre:regex-replace "http://" (location source) "https://")))
537
(format nil "https ~A" location)))
538
539
(defun rewrite-sources (match-fun new-source-fun)
540
+ "Rewrite any source that returns TRUE from MATCH-FUN with
541
+NEW-SOURCE-FUN, which should return a single line for use in the
542
+source's source.txt file. Useful for bulk-updating sources."
543
(map-sources
544
545
(when (funcall match-fun source)
0 commit comments