fix lint error

This commit is contained in:
Cassie Tarakajian 2019-02-20 14:57:26 -05:00
parent 4dcec4baa8
commit 3a1b8abac1
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@
*/
function generateFileSystemSafeName(string, replacer) {
// 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 || '');
return slug;