fix lint error
This commit is contained in:
parent
4dcec4baa8
commit
3a1b8abac1
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue