You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The text was updated successfully, but these errors were encountered:
FuS1
changed the title
Str::mask get wrong result when first letter equle second letter
Str::mask get wrong result when first letter equal to second letter
Jun 18, 2022
Description:
Str::mask('abcde', '', 1, -1); =>"ae"
Str::mask('aaaba', '', 1, 3); => "aa"
Str::mask('abcde', '', -4, 3); =>"ae"
Str::mask('aaaba', '', -4, 3); =>"a**a"
But I below case will get wrong result string
Str::mask('aaaaa', '*', 1, -1); => "**aa"
Str::mask('aaaab', '', 1,3); => "**ab"
Str::mask('aaaaa', '', -4, 3); => "**aa"
Str::mask('aaaab', '', -4, 3); => "***ab"
Steps To Reproduce:
The text was updated successfully, but these errors were encountered: