Skip to content

Commit

Permalink
fix: escape curly brace in regex for android compat
Browse files Browse the repository at this point in the history
  • Loading branch information
Theta-Dev committed Sep 9, 2022
1 parent 6a85836 commit 95b59eb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ private static String parseWithParenthesisMatching(final String playerJsCode,
@Nonnull
private static String parseWithRegex(final String playerJsCode, final String functionName)
throws Parser.RegexException {
final Pattern functionPattern = Pattern.compile(functionName + "=function(.*?};)\n",
final Pattern functionPattern = Pattern.compile(functionName + "=function(.*?\\};)\n",
Pattern.DOTALL);
return validateFunction("function "
+ functionName
Expand Down

0 comments on commit 95b59eb

Please sign in to comment.