Skip to content

Commit c98bcdd

Browse files
committed
Use Perl and update regular expression
1 parent 75b2734 commit c98bcdd

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
@@ -59,7 +59,7 @@ REMARK_PKG_URLS_OUTPUT_FLAG ?= --output
5959
# make markdown-pkg-urls MARKDOWN_PATTERN='README.md' MARKDOWN_FILTER='.*/math/base/special/.*'
6060
#/
6161
markdown-pkg-urls:
62-
$(QUIET) $(FIND_MARKDOWN_CMD) | grep '^[\/]\|^[a-zA-Z]:[/\]' | xargs sed -i '' 's/^\[@\(stdlib\/[^:]\{1,\}\)\]:.\{1,\}$$/[@\1]: https:\/\/github.com\/stdlib-js\/stdlib\/tree\/develop\/lib\/node_modules\/%40\1/g'
62+
$(QUIET) $(FIND_MARKDOWN_CMD) | grep '^[\/]\|^[a-zA-Z]:[/\]' | xargs perl -pi -e 's/^\[@(stdlib\/[^:]{1,})\]:.{1,}$$/[@\1]: https:\/\/github.com\/stdlib-js\/stdlib\/tree\/develop\/lib\/node_modules\/%40\1/g'
6363

6464
.PHONY: markdown-pkg-urls
6565

0 commit comments

Comments
 (0)