Skip to content

Commit cfb7d27

Browse files
Update web-forms.js
Better compatibility with older browsers
1 parent 2ffc321 commit cfb7d27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web-forms.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,7 @@ function cb_FormDataSerialize(form, TagSubmitName, TagSubmitValue, FormIsMultiPa
464464
function cb_ExtractScriptTags(Html)
465465
{
466466
var ScriptList = new Array();
467-
const regex = /<script[^>]+>(.*?)<\/script>/gs;
467+
const regex = /<script[^>]*>([\s\S]*?)<\/script>/g;
468468
let match;
469469

470470
while ((match = regex.exec(Html)) !== null)

0 commit comments

Comments
 (0)