Skip to content

Commit 1072bd9

Browse files
committed
Use Perl and update regular expression
1 parent ea0df4e commit 1072bd9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/make/lib/markdown/pkg_urls.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,6 @@ markdown-pkg-urls:
7676
# make markdown-pkg-urls-files FILES='/foo/foo.md /foo/bar.md'
7777
#/
7878
markdown-pkg-urls-files:
79-
$(QUIET) echo $(FILES) | xargs sed -i '' 's/^\[@\(stdlib\/[^:]\{1,\}\)\]:.\{1,\}$$/[@\1]: https:\/\/github.com\/stdlib-js\/stdlib\/tree\/develop\/lib\/node_modules\/%40\1/g'
79+
$(QUIET) echo $(FILES) | xargs perl -pi -e 's/^\[@(stdlib\/[^:]{1,})\]:.{1,}$$/[@\1]: https:\/\/github.com\/stdlib-js\/stdlib\/tree\/develop\/lib\/node_modules\/%40\1/g'
8080

8181
.PHONY: markdown-pkg-urls-files

0 commit comments

Comments
 (0)