Closed lscar closed 2 years ago
I don't see an issue here. If you really think there's a bug, feel free to PR the Laravel framework with a fix and test. Thanks
You mean "Illuminate\Support\Str::mask('123412341234', '*', 4, 4)" output "****12341234" is correct, right?
I just want to mask numbers from 5th to 8th.
Am I using it incorrectly?
Description:
Illuminate\Support\Str::mask, wrong mask position
This code is not rigorous.Mask error when substring is repeated.
Steps To Reproduce:
echo Illuminate\Support\Str::mask('19000000001', '*', 3, 4);
actual output
correct output