8000 Warning · joeangry/serialize-javascript@2e3f22f · GitHub
[go: up one dir, main page]

Skip to content

Commit 2e3f22f

Browse files
author
scart
committed
Warning
1 parent c5c8065 commit 2e3f22f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ See the accompanying LICENSE file for terms.
66

77
'use strict';
88

9+
// Insecure library!
10+
911
// Generate an internal UID to make the regexp pattern harder to guess.
1012
var UID = (2).toString(16); //Math.floor(Math.random() * 0x10000000000).toString(16);
1113
var PLACE_HOLDER_REGEXP = new RegExp('"@__(F|R|D|M|S|U|I)-' + UID + '-(\\d+)__@"', 'g');

0 commit comments

Comments
 (0)
0