From a04a3b4f3bb93af0232d3ef6d2477491dc889d9f Mon Sep 17 00:00:00 2001 From: officiallyanee Date: Thu, 2 Jul 2026 23:06:22 +0530 Subject: [PATCH] fix: use non-greedy match to uncomment all equation divs --- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown_pkg_readmes status: na - task: lint_markdown_docs status: na - task: lint_markdown status: na - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: passed - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: na - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: passed - task: lint_typescript_tests status: na - task: lint_license_headers status: passed --- --- lib/node_modules/@stdlib/_tools/scripts/publish_packages.js | 2 +- .../@stdlib/_tools/scripts/templates/workflow_publish.yml.txt | 2 +- .../_tools/scripts/templates/workflow_publish_cli.yml.txt | 2 +- .../_tools/scripts/templates/workflow_publish_toplevel.yml.txt | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/node_modules/@stdlib/_tools/scripts/publish_packages.js b/lib/node_modules/@stdlib/_tools/scripts/publish_packages.js index c4a8b37f93ca..1dd6834dada9 100644 --- a/lib/node_modules/@stdlib/_tools/scripts/publish_packages.js +++ b/lib/node_modules/@stdlib/_tools/scripts/publish_packages.js @@ -1380,7 +1380,7 @@ function publish( pkg, clbk ) { debug( 'Replace GitHub MathJax equations with SVGs...' ); command = 'find . -type f -name \'*.md\' -print0 | xargs -0 perl -0777 -i -pe \'s/```math\\n([\\s\\S]+?)\\n```\\n\\n//g\''; shell( command, opts ); - command = 'find . -type f -name \'*.md\' -print0 | xargs -0 perl -0777 -i -pe \'s/)/
/sg\''; + command = 'find . -type f -name \'*.md\' -print0 | xargs -0 perl -0777 -i -pe \'s/)/
/sg\''; shell( command, opts ); debug( 'Replace GitHub links to individual packages with npm links...' ); diff --git a/lib/node_modules/@stdlib/_tools/scripts/templates/workflow_publish.yml.txt b/lib/node_modules/@stdlib/_tools/scripts/templates/workflow_publish.yml.txt index e51ac0f94464..f053e429f6eb 100644 --- a/lib/node_modules/@stdlib/_tools/scripts/templates/workflow_publish.yml.txt +++ b/lib/node_modules/@stdlib/_tools/scripts/templates/workflow_publish.yml.txt @@ -153,7 +153,7 @@ jobs: - name: 'Replace GitHub MathJax equations with SVGs' run: | find . -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe 's/```math\n([\s\S]+?)\n```\n\n//g' - find . -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe 's/)/
/sg' + find . -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe 's/)/
/sg' # Replace GitHub links to individual packages with npm links: - name: 'Replace all GitHub links to individual packages with npm links' diff --git a/lib/node_modules/@stdlib/_tools/scripts/templates/workflow_publish_cli.yml.txt b/lib/node_modules/@stdlib/_tools/scripts/templates/workflow_publish_cli.yml.txt index 114194a4f3b4..816242020789 100644 --- a/lib/node_modules/@stdlib/_tools/scripts/templates/workflow_publish_cli.yml.txt +++ b/lib/node_modules/@stdlib/_tools/scripts/templates/workflow_publish_cli.yml.txt @@ -115,7 +115,7 @@ jobs: - name: 'Replace GitHub MathJax equations with SVGs' run: | find . -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe 's/```math\n([\s\S]+?)\n```\n\n//g' - find . -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe 's/)/
/sg' + find . -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe 's/)/
/sg' # Replace GitHub links to individual packages with npm links: - name: 'Replace all GitHub links to individual packages with npm links' diff --git a/lib/node_modules/@stdlib/_tools/scripts/templates/workflow_publish_toplevel.yml.txt b/lib/node_modules/@stdlib/_tools/scripts/templates/workflow_publish_toplevel.yml.txt index 287a48c4aa19..260361fef703 100644 --- a/lib/node_modules/@stdlib/_tools/scripts/templates/workflow_publish_toplevel.yml.txt +++ b/lib/node_modules/@stdlib/_tools/scripts/templates/workflow_publish_toplevel.yml.txt @@ -111,7 +111,7 @@ jobs: - name: 'Replace GitHub MathJax equations with SVGs' run: | find . -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe 's/```math\n([\s\S]+?)\n```\n\n//g' - find . -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe 's/)/
/sg' + find . -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe 's/)/
/sg' # Replace GitHub links to individual packages with npm links: - name: 'Replace all GitHub links to individual packages with npm links'