Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function testFilename(filename) {
- const nomeProibido = 'nome'
- if (filename.includes(nomeProibido)) return false
- if (filename[0] === '2') return false
- return filename.match(/\.xls[xm]?$/)
- }
- function appendTrueFalse(filename) {
- return `${filename} = ${testFilename(filename) ? 'true' : 'false'}`
- }
Add Comment
Please, Sign In to add comment