Skip to content

Commit 71f0809

Browse files
committed
Merge branch 'master' of github.com:codeceptjs/ui
2 parents 0ec2975 + 10d9f3e commit 71f0809

File tree

3 files changed

+198
-285
lines changed

3 files changed

+198
-285
lines changed

lib/model/snapshot-store/fix-html-snapshot.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ const mapAttr = ($, snapshot, attrName) => {
5454

5555
module.exports = snapshot => {
5656
// disable script tags
57+
snapshot.source = snapshot.source || '';
5758
let $ = cheerio.load(snapshot.source.replace(/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi, ''));
5859

5960
// Convert links

0 commit comments

Comments
 (0)