From 013efd7a212d87f8c21b15aca4bbbfab04725302 Mon Sep 17 00:00:00 2001 From: Opportunity Date: Tue, 21 Feb 2023 15:33:36 +0800 Subject: Update get.ps1 --- scripts/get.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/get.ps1 b/scripts/get.ps1 index 5c00ff1fe..6f850204b 100755 --- a/scripts/get.ps1 +++ b/scripts/get.ps1 @@ -148,7 +148,7 @@ param ( } if ($content) { - $content = [System.Text.RegularExpressions.Regex]::Replace($content, "\n*(# PowerShell parameter completion shim for xmake)?\s*Register-ArgumentCompleter -Native -CommandName xmake -ScriptBlock\s*{.+?\n}\s*", "`n", [System.Text.RegularExpressions.RegexOptions]::Singleline) + $content = $content -replace "`n# >>> xmake >>>`n[\S\s]*?`n# <<< xmake <<<`n", "" } try { $appendcontent = (Invoke-Webrequest 'https://xmake.io/assets/scripts/pscompletions.text' -UseBasicParsing).Content -- cgit v1.3.1