That's just awful. A regexp is way too powerful here, use `key.substr(0, 5) === 'data-'`.