renamed 2 digit file names
This commit is contained in:
parent
018011dd27
commit
b4d985a55a
44 changed files with 0 additions and 0 deletions
11
2015/05/part1.js
Normal file
11
2015/05/part1.js
Normal file
|
@ -0,0 +1,11 @@
|
|||
const fs = require('fs');
|
||||
const input = fs.readFileSync('input.txt', 'utf-8').split('\n');
|
||||
|
||||
let counter = 0;
|
||||
for (let str of input) {
|
||||
if ((str.match(/(a|e|i|o|u)/g) || []).length >= 3 &&
|
||||
str.match(/(\w)\1/g) &&
|
||||
!str.match(/(ab|cd|pq|xy)/))
|
||||
counter++;
|
||||
}
|
||||
console.log(counter)
|
Loading…
Add table
Add a link
Reference in a new issue