fix lint error

This commit is contained in:
Cassie Tarakajian 2019-02-20 14:57:26 -05:00
parent 4dcec4baa8
commit 3a1b8abac1

View file

@ -7,7 +7,7 @@
*/ */
function generateFileSystemSafeName(string, replacer) { function generateFileSystemSafeName(string, replacer) {
// from here https://serverfault.com/a/242134 // from here https://serverfault.com/a/242134
const INVALID_CHARS_REGEX = /[*/?:\\<>|"\u0000-\u001F]/g; const INVALID_CHARS_REGEX = /[*/?:\\<>|"\u0000-\u001F]/g; // eslint-disable-line
const slug = string.replace(INVALID_CHARS_REGEX, replacer || ''); const slug = string.replace(INVALID_CHARS_REGEX, replacer || '');
return slug; return slug;