Skip to content
Snippets Groups Projects
Commit 68ca2bf7 authored by Igor Markin's avatar Igor Markin
Browse files

Do not throw an error in case RKA substring was not found

parent edd325d2
No related branches found
No related tags found
1 merge request!45Do no throw rka error
......@@ -105,7 +105,7 @@ export const findRKASubstring = (
);
if (startingIndex === -1) {
throw new Error("Unable to find RKA substring");
return "";
}
return string.slice(startingIndex, startingIndex + substringSize);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment