mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-17 10:58:20 -07:00
Suppress no-control-regex in sanitizefilename
This commit is contained in:
parent
75ac5ed8b2
commit
b30469654f
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user