Skip to content

Commit fdfb10a

Browse files
authored
Test on Node.js v12 (#70)
1 parent 2f5f126 commit fdfb10a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
language: node_js
22
node_js:
3-
- "8"
43
- "10"
4+
- "12"

test/unit/serialize.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ describe('serialize( obj )', function () {
299299
});
300300

301301
it('should serialize dangerous regexps', function () {
302-
var re = /[</script><script>alert('xss')//]/
302+
var re = /[<\/script><script>alert('xss')\/\/]/
303303
expect(serialize(re)).to.be.a('string').equal('new RegExp("[\\u003C\\\\\\u002Fscript\\u003E\\u003Cscript\\u003Ealert(\'xss\')\\\\\\u002F\\\\\\u002F]", "")');
304304
});
305305
});

0 commit comments

Comments
 (0)