Skip to content

Commit

Permalink
Another space
Browse files Browse the repository at this point in the history
  • Loading branch information
devoxin authored Dec 10, 2024
1 parent 4316acc commit 8d4bd86
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ private SignatureCipher extractFromScript(@NotNull String script, @NotNull Strin
String nFunction = nFunctionMatcher.group(0);
String nfParameterName = DataFormatTools.extractBetween(nFunction, "(", ")");
// remove short-circuit that prevents n challenge transformation
nFunction = nFunction.replaceAll("if\\s*\\(\\s*typeof\\s*\\w+\\s*===?.*?\\)\\s*return " + nfParameterName + "\\s*;?", "");
nFunction = nFunction.replaceAll("if\\s*\\(\\s*typeof\\s*\\w+\\s*===?.*?\\)\\s*return\\s+" + nfParameterName + "\\s*;?", "");

SignatureCipher cipherKey = new SignatureCipher(nFunction, scriptTimestamp.group(2), script);

Expand Down

0 comments on commit 8d4bd86

Please sign in to comment.