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 eb8ccae commit cc837c9Copy full SHA for cc837c9
jaro
@@ -156,8 +156,8 @@
156
(set! str (substring-replace str "%F" (escape (path->abs file))))
157
(set! str (substring-replace str "%u" (escape (path->uri file))))
158
;; Replace capture groups with %0 %1 %2...
159
- (set! pattern (pattern-exec pattern file))
160
- (when pattern
+ (when (and pattern (not (list? pattern)))
+ (set! pattern (pattern-exec pattern file))
161
(for-each
162
(λ (i) (let ((captured (match:substring pattern i)))
163
(when captured
0 commit comments