summaryrefslogtreecommitdiff
path: root/scripts/get.ps1
diff options
context:
space:
mode:
authorOpportunity <[email protected]>2023-02-21 15:33:36 +0800
committerGitHub <[email protected]>2023-02-21 15:33:36 +0800
commit013efd7a212d87f8c21b15aca4bbbfab04725302 (patch)
treeec45fa97cd2f61651a78f42a703fbcc174ba07a0 /scripts/get.ps1
parent775cc38c761e02fa3ff4825eabca344b98c75b78 (diff)
Update get.ps1
Diffstat (limited to 'scripts/get.ps1')
-rwxr-xr-xscripts/get.ps12
1 files changed, 1 insertions, 1 deletions
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