diff --git a/assets/resources/scriptlets.js b/assets/resources/scriptlets.js index 8125f0369..52abeb6d9 100644 --- a/assets/resources/scriptlets.js +++ b/assets/resources/scriptlets.js @@ -221,7 +221,7 @@ } const reDocURL = new RegExp(docURL.replace(reRegexEscape, '\\$&'), 'g'); const stack = err.stack - .replace(/^.*?\b[gs]et\b[^\n\r]+?[\n\r]*/m, '') + .replace(/^.*?\b[gs]et\b[^\n\r]+?(?:[\n\r]+|$)/m, '') .replace(reDocURL, ''); const r = reNeedle.test(stack); if (