I feel so dirty after this ​
/LH

@hazelnoot my eyes! the googles do nothing!

it looks like this could have been a job for regexp? Or would that be too great a performance hit?

@avatastic @hazelnoot you don't even need regex for this:

if (name.toLowerCase().startsWith('svg')) { resolve(true) }
I remember that back in the day we had an assignment and one of my classmates solution was literally an if statement for every possible input. The poor guy didn't even use macros to generate that file, he copy pasted and typed input and output by hand.
But it worked...

@interru that's actually not equivalent
@hazelnoot completely missed the length check. In that case name.toLowerCase() === 'svg'