stages/shell.init: restrict filename pattern

Old filename pattern was too wide and contained a bug in the form of
.-_, which defined a range instead of three characters.
This commit is contained in:
Achilleas Koutsou 2023-02-15 12:47:37 +01:00
parent b848e5d9df
commit eb903a9596

View file

@ -14,7 +14,7 @@ SCHEMA_2 = r"""
"options": {
"properties": {
"patternProperties": {
"^[\\w.-_]{1,250}$": {
"^[a-zA-Z0-9\\.\\-_]{1,250}$": {
"type": "object",
"additionalProperties": false,
"properties": {