JS: Add: Test case for checking if regex via using toSpliced

This commit is contained in:
Napalys
2024-11-14 15:31:38 +01:00
parent 52330e834c
commit 2b0def1ed3

View File

@@ -4,3 +4,8 @@ function detectRegexViaSplice(string) {
let found = getMyThing().search('regex'); // NOT OK
arr.splice(found, 1);
};
function detectRegexViaToSpliced(string) {
let found = getMyThing().search('regex'); // NOT OK -- Should be marked as regular expression but it is not.
arr.toSpliced(found, 1);
};