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

Add build

parent 68ca2bf7
No related branches found
No related tags found
1 merge request!45Do no throw rka error
......@@ -56,7 +56,7 @@ exports.findRKASubstring = (string, rabinFingerprint, substringSize) => {
}
const startingIndex = searchFingerprintInText(string, rabinFingerprint, substringSize);
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