loading

This Plugin Crashed!

Error: Error: must not create an existing file {"type":"CREATE_FILE","wid":"0.24563049028766115","path":"index.js","file":{"path":"index.js","content":{"asEncoding":{"base64":"bGV0IHRlc3RSZWdleCA9IC9bYWJjXS87Ci8vIG5pZSBtYSBhYmMKbGV0IHRlc3RTdHJpbmcgPSAnVG8gamVzdCB0ZXN0Jwpjb25zb2xlLmxvZyh0ZXN0UmVnZXgudGVzdCh0ZXN0U3RyaW5nKSk7CgovLyBtYSBqZWRuYSB6IGxpdGVyIHogW10gbmF3aWFzb3cKbGV0IHRlc3RTdHJpbmcyID0gJ1RvIGplc3QgdGVzdCBhJwpjb25zb2xlLmxvZyh0ZXN0UmVnZXgudGVzdCh0ZXN0U3RyaW5nMikpOwoKLy8gbWEgY2hvY2lhxbwgamVkbsSFIGN5ZnLEmSB6IHpha3Jlc3UgMC05CmxldCB0ZXN0UmVnZXgyID0gL1thLXpBLVowLTldLzsKbGV0IHRlc3RTdHJpbmczID0gJzMwLTQ1NicKY29uc29sZS5sb2codGVzdFJlZ2V4Mi50ZXN0KHRlc3RTdHJpbmczKSk7"},"asBuffer":null},"loaded":true}}
1
2
3
4
5
6
7
8
9
10
11
12
13
let testRegex = /[abc]/;
// nie ma abc
let testString = 'To jest test'
console.log(testRegex.test(testString));

// ma jedna z liter z [] nawiasow
let testString2 = 'To jest test a'
console.log(testRegex.test(testString2));

// ma chociaż jedną cyfrę z zakresu 0-9
let testRegex2 = /[a-zA-Z0-9]/;
let testString3 = '30-456'
console.log(testRegex2.test(testString3));
node v10.16.0