Suppress no-control-regex in sanitizefilename

This commit is contained in:
Bill Thornton 2020-02-26 01:39:10 -05:00
parent 75ac5ed8b2
commit b30469654f

View File

@ -4,6 +4,7 @@ define([], function () {
'use strict'; 'use strict';
var illegalRe = /[\/\?<>\\:\*\|":]/g; var illegalRe = /[\/\?<>\\:\*\|":]/g;
// eslint-disable-next-line no-control-regex
var controlRe = /[\x00-\x1f\x80-\x9f]/g; var controlRe = /[\x00-\x1f\x80-\x9f]/g;
var reservedRe = /^\.+$/; var reservedRe = /^\.+$/;
var windowsReservedRe = /^(con|prn|aux|nul|com[0-9]|lpt[0-9])(\..*)?$/i; var windowsReservedRe = /^(con|prn|aux|nul|com[0-9]|lpt[0-9])(\..*)?$/i;