From 425af13026571184929b8291f8c12032fe0a6e17 Mon Sep 17 00:00:00 2001 From: Ikko Ashimine Date: Sat, 23 Oct 2021 01:14:43 +0900 Subject: [PATCH] docs: fix typo in starship.ps1 (#3173) preceeding -> preceding --- src/init/starship.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/init/starship.ps1 b/src/init/starship.ps1 index e1001680..bd688bad 100644 --- a/src/init/starship.ps1 +++ b/src/init/starship.ps1 @@ -43,8 +43,8 @@ function global:prompt { # Build an arguments string which follows the C++ command-line argument quoting rules # See: https://docs.microsoft.com/en-us/previous-versions//17w5ykft(v=vs.85)?redirectedfrom=MSDN $escaped = $Arguments | ForEach-Object { - $s = $_ -Replace '(\\+)"','$1$1"'; # Escape backslash chains immediately preceeding quote marks. - $s = $s -Replace '(\\+)$','$1$1'; # Escape backslash chains immediately preceeding the end of the string. + $s = $_ -Replace '(\\+)"','$1$1"'; # Escape backslash chains immediately preceding quote marks. + $s = $s -Replace '(\\+)$','$1$1'; # Escape backslash chains immediately preceding the end of the string. $s = $s -Replace '"','\"'; # Escape quote marks. "`"$s`"" # Quote the argument. }