Skip to content

Commit

Permalink
Add startswith alias
Browse files Browse the repository at this point in the history
  • Loading branch information
thegrb93 committed Sep 17, 2024
1 parent 800241d commit c3c60f6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lua/starfall/libs_sh/string.lua
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,8 @@ string_library.split = sfstring.Split
-- @param string str String to be checked
-- @param string start String to check with
-- @return boolean True if the first string starts with the second
string_library.startsWith = sfstring.StartsWith

string_library.startWith = sfstring.StartWith

--- Removes the extension of a path
Expand Down
1 change: 1 addition & 0 deletions lua/starfall/sflib.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2023,6 +2023,7 @@ do
string_library.setChar = string.SetChar string_library.SetChar = string.SetChar
string_library.split = string.Split string_library.Split = string.Split
string_library.startWith = string.StartWith string_library.StartWith = string.StartWith
string_library.startsWith = string.StartsWith string_library.StartsWith = string.StartsWith
string_library.stripExtension = string.StripExtension string_library.StripExtension = string.StripExtension
string_library.sub = string.sub
string_library.toMinutesSeconds = string.ToMinutesSeconds string_library.ToMinutesSeconds = string.ToMinutesSeconds
Expand Down

0 comments on commit c3c60f6

Please sign in to comment.