Skip to content

Commit

Permalink
init: fixed Trim_Prefix_String primitive function bug
Browse files Browse the repository at this point in the history
There were some minor performance bugs from Trim_Prefix_String
primitive function. Hence, let's fix it.

This patch fixes Trim_Prefix_String primitive function bug
in init/ directory.

Co-authored-by: Shuralyov, Jean <[email protected]>
Co-authored-by: Galyna, Cory <[email protected]>
Co-authored-by: (Holloway) Chew, Kean Ho <[email protected]>
Signed-off-by: (Holloway) Chew, Kean Ho <[email protected]>
  • Loading branch information
4 people committed Nov 8, 2024
1 parent f1da9c6 commit a72631f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions init/services/HestiaKERNEL/String/Trim_Prefix_String.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,6 @@ function HestiaKERNEL-Trim-Prefix-String {
}

$___content = HestiaKERNEL-Trim-Prefix-Unicode $___content $___chars
if ($___content.Length -eq 0) {
return $___input
}


# report status
Expand Down
2 changes: 1 addition & 1 deletion init/services/HestiaKERNEL/Unicode/Trim_Prefix_Unicode.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,5 @@ function HestiaKERNEL-Trim-Prefix-Unicode {


# report status
return [uint32[]]$___content_unicode[$___index..($___content_unicode.Length - 1)]
return [uint32[]]$___content_unicode[$___index..($___content_unicode.Length)]
}

0 comments on commit a72631f

Please sign in to comment.