diff --git a/src/core/core_utils.js b/src/core/core_utils.js index fd16b2373..89fad2b6c 100644 --- a/src/core/core_utils.js +++ b/src/core/core_utils.js @@ -515,7 +515,7 @@ function recoverJsURL(str) { const URL_OPEN_METHODS = ["app.launchURL", "window.open", "xfa.host.gotoURL"]; const regex = new RegExp( "^\\s*(" + - URL_OPEN_METHODS.join("|").split(".").join("\\.") + + URL_OPEN_METHODS.join("|").replaceAll(".", "\\.") + ")\\((?:'|\")([^'\"]*)(?:'|\")(?:,\\s*(\\w+)\\)|\\))", "i" );