loading

This Plugin Crashed!

Error: Error: must not create an existing file {"type":"CREATE_FILE","wid":"0.7499838188364796","path":"index.js","file":{"path":"index.js","content":{"asEncoding":{"base64":"bGV0IHRlc3RSZWdleCA9IC9cZHsyfS0/XGR7M30vOwpsZXQgdGVzdFN0cmluZyA9ICczMC00NTYnCmNvbnNvbGUubG9nKHRlc3RSZWdleC50ZXN0KHRlc3RTdHJpbmcpKTsKCmxldCB0ZXN0U3RyaW5nMiA9ICczMDQ1NicKY29uc29sZS5sb2codGVzdFJlZ2V4LnRlc3QodGVzdFN0cmluZzIpKTsKCmxldCB0ZXN0U3RyaW5nMyA9ICczMC0tNDU2Jwpjb25zb2xlLmxvZyh0ZXN0UmVnZXgudGVzdCh0ZXN0U3RyaW5nMykpOw=="},"asBuffer":null},"loaded":true}}
1
2
3
4
5
6
7
8
9
let testRegex = /\d{2}-?\d{3}/;
let testString = '30-456'
console.log(testRegex.test(testString));

let testString2 = '30456'
console.log(testRegex.test(testString2));

let testString3 = '30--456'
console.log(testRegex.test(testString3));
node v10.16.0