From bdd2226223b43aba01d203e6997bd9320525847b Mon Sep 17 00:00:00 2001 From: Nazar Kovtun Date: Wed, 9 Jul 2025 16:21:03 +0300 Subject: [PATCH] HCK-11947: forbid invalid name caracters in the beginning and in the end of unity tag name --- .../container_level/containerLevelConfig.json | 4 ++-- .../entity_level/entityLevelConfig.json | 2 +- .../field_level/fieldLevelConfig.json | 22 +++++++++---------- .../view_level/viewLevelConfig.json | 2 +- 4 files changed, 15 insertions(+), 15 deletions(-) diff --git a/properties_pane/container_level/containerLevelConfig.json b/properties_pane/container_level/containerLevelConfig.json index 569c0a0..b012020 100644 --- a/properties_pane/container_level/containerLevelConfig.json +++ b/properties_pane/container_level/containerLevelConfig.json @@ -168,7 +168,7 @@ making sure that you maintain a proper JSON format. "propertyType": "text", "shouldValidate": true, "validation": { - "regex": "^(?=.*?\\d)?(?=.*?[a-zA-Z])?\\S[^\\.,\\-=\\/:]{1,253}\\S$" + "regex": "^(?=.*?\\d)?(?=.*?[a-zA-Z])?[^\\.,\\-=/:\\s][^\\.,\\-=/:]{1,253}[^\\.,\\-=/:\\s]$" } }, { @@ -243,7 +243,7 @@ making sure that you maintain a proper JSON format. "propertyTooltip": "The key of the tag must be between 1 and 255 UTF-8 characters inclusive, special characters cannot be used in tag names", "propertyType": "text", "validation": { - "regex": "^(?=.*?\\d)?(?=.*?[a-zA-Z])?\\S[^\\.,\\-=\\/:]{1,253}\\S$" + "regex": "^(?=.*?\\d)?(?=.*?[a-zA-Z])?[^\\.,\\-=/:\\s][^\\.,\\-=/:]{1,253}[^\\.,\\-=/:\\s]$" } }, { diff --git a/properties_pane/entity_level/entityLevelConfig.json b/properties_pane/entity_level/entityLevelConfig.json index 1e4be4d..e0e70b4 100644 --- a/properties_pane/entity_level/entityLevelConfig.json +++ b/properties_pane/entity_level/entityLevelConfig.json @@ -496,7 +496,7 @@ making sure that you maintain a proper JSON format. "propertyTooltip": "The key of the tag must be between 1 and 255 UTF-8 characters inclusive, special characters cannot be used in tag names", "propertyType": "text", "validation": { - "regex": "^(?=.*?\\d)?(?=.*?[a-zA-Z])?\\S[^\\.,\\-=\\/:]{1,253}\\S$" + "regex": "^(?=.*?\\d)?(?=.*?[a-zA-Z])?[^\\.,\\-=/:\\s][^\\.,\\-=/:]{1,253}[^\\.,\\-=/:\\s]$" } }, { diff --git a/properties_pane/field_level/fieldLevelConfig.json b/properties_pane/field_level/fieldLevelConfig.json index 2991425..45b63fd 100644 --- a/properties_pane/field_level/fieldLevelConfig.json +++ b/properties_pane/field_level/fieldLevelConfig.json @@ -513,7 +513,7 @@ making sure that you maintain a proper JSON format. "propertyTooltip": "The key of the tag must be between 1 and 255 UTF-8 characters inclusive, special characters cannot be used in tag names", "propertyType": "text", "validation": { - "regex": "^(?=.*?\\d)?(?=.*?[a-zA-Z])?\\S[^\\.,\\-=\\/:]{1,253}\\S$" + "regex": "^(?=.*?\\d)?(?=.*?[a-zA-Z])?[^\\.,\\-=/:\\s][^\\.,\\-=/:]{1,253}[^\\.,\\-=/:\\s]$" } }, { @@ -946,7 +946,7 @@ making sure that you maintain a proper JSON format. "propertyTooltip": "The key of the tag must be between 1 and 255 UTF-8 characters inclusive, special characters cannot be used in tag names", "propertyType": "text", "validation": { - "regex": "^(?=.*?\\d)?(?=.*?[a-zA-Z])?\\S[^\\.,\\-=\\/:]{1,253}\\S$" + "regex": "^(?=.*?\\d)?(?=.*?[a-zA-Z])?[^\\.,\\-=/:\\s][^\\.,\\-=/:]{1,253}[^\\.,\\-=/:\\s]$" } }, { @@ -1104,7 +1104,7 @@ making sure that you maintain a proper JSON format. "propertyTooltip": "The key of the tag must be between 1 and 255 UTF-8 characters inclusive, special characters cannot be used in tag names", "propertyType": "text", "validation": { - "regex": "^(?=.*?\\d)?(?=.*?[a-zA-Z])?\\S[^\\.,\\-=\\/:]{1,253}\\S$" + "regex": "^(?=.*?\\d)?(?=.*?[a-zA-Z])?[^\\.,\\-=/:\\s][^\\.,\\-=/:]{1,253}[^\\.,\\-=/:\\s]$" } }, { @@ -1428,7 +1428,7 @@ making sure that you maintain a proper JSON format. "propertyTooltip": "The key of the tag must be between 1 and 255 UTF-8 characters inclusive, special characters cannot be used in tag names", "propertyType": "text", "validation": { - "regex": "^(?=.*?\\d)?(?=.*?[a-zA-Z])?\\S[^\\.,\\-=\\/:]{1,253}\\S$" + "regex": "^(?=.*?\\d)?(?=.*?[a-zA-Z])?[^\\.,\\-=/:\\s][^\\.,\\-=/:]{1,253}[^\\.,\\-=/:\\s]$" } }, { @@ -1807,7 +1807,7 @@ making sure that you maintain a proper JSON format. "propertyTooltip": "The key of the tag must be between 1 and 255 UTF-8 characters inclusive, special characters cannot be used in tag names", "propertyType": "text", "validation": { - "regex": "^(?=.*?\\d)?(?=.*?[a-zA-Z])?\\S[^\\.,\\-=\\/:]{1,253}\\S$" + "regex": "^(?=.*?\\d)?(?=.*?[a-zA-Z])?[^\\.,\\-=/:\\s][^\\.,\\-=/:]{1,253}[^\\.,\\-=/:\\s]$" } }, { @@ -2137,7 +2137,7 @@ making sure that you maintain a proper JSON format. "propertyTooltip": "The key of the tag must be between 1 and 255 UTF-8 characters inclusive, special characters cannot be used in tag names", "propertyType": "text", "validation": { - "regex": "^(?=.*?\\d)?(?=.*?[a-zA-Z])?\\S[^\\.,\\-=\\/:]{1,253}\\S$" + "regex": "^(?=.*?\\d)?(?=.*?[a-zA-Z])?[^\\.,\\-=/:\\s][^\\.,\\-=/:]{1,253}[^\\.,\\-=/:\\s]$" } }, { @@ -2466,7 +2466,7 @@ making sure that you maintain a proper JSON format. "propertyTooltip": "The key of the tag must be between 1 and 255 UTF-8 characters inclusive, special characters cannot be used in tag names", "propertyType": "text", "validation": { - "regex": "^(?=.*?\\d)?(?=.*?[a-zA-Z])?\\S[^\\.,\\-=\\/:]{1,253}\\S$" + "regex": "^(?=.*?\\d)?(?=.*?[a-zA-Z])?[^\\.,\\-=/:\\s][^\\.,\\-=/:]{1,253}[^\\.,\\-=/:\\s]$" } }, { @@ -2811,7 +2811,7 @@ making sure that you maintain a proper JSON format. "propertyTooltip": "The key of the tag must be between 1 and 255 UTF-8 characters inclusive, special characters cannot be used in tag names", "propertyType": "text", "validation": { - "regex": "^(?=.*?\\d)?(?=.*?[a-zA-Z])?\\S[^\\.,\\-=\\/:]{1,253}\\S$" + "regex": "^(?=.*?\\d)?(?=.*?[a-zA-Z])?[^\\.,\\-=/:\\s][^\\.,\\-=/:]{1,253}[^\\.,\\-=/:\\s]$" } }, { @@ -3181,7 +3181,7 @@ making sure that you maintain a proper JSON format. "propertyTooltip": "The key of the tag must be between 1 and 255 UTF-8 characters inclusive, special characters cannot be used in tag names", "propertyType": "text", "validation": { - "regex": "^(?=.*?\\d)?(?=.*?[a-zA-Z])?\\S[^\\.,\\-=\\/:]{1,253}\\S$" + "regex": "^(?=.*?\\d)?(?=.*?[a-zA-Z])?[^\\.,\\-=/:\\s][^\\.,\\-=/:]{1,253}[^\\.,\\-=/:\\s]$" } }, { @@ -3507,7 +3507,7 @@ making sure that you maintain a proper JSON format. "propertyTooltip": "The key of the tag must be between 1 and 255 UTF-8 characters inclusive, special characters cannot be used in tag names", "propertyType": "text", "validation": { - "regex": "^(?=.*?\\d)?(?=.*?[a-zA-Z])?\\S[^\\.,\\-=\\/:]{1,253}\\S$" + "regex": "^(?=.*?\\d)?(?=.*?[a-zA-Z])?[^\\.,\\-=/:\\s][^\\.,\\-=/:]{1,253}[^\\.,\\-=/:\\s]$" } }, { @@ -3866,7 +3866,7 @@ making sure that you maintain a proper JSON format. "propertyTooltip": "The key of the tag must be between 1 and 255 UTF-8 characters inclusive, special characters cannot be used in tag names", "propertyType": "text", "validation": { - "regex": "^(?=.*?\\d)?(?=.*?[a-zA-Z])?\\S[^\\.,\\-=\\/:]{1,253}\\S$" + "regex": "^(?=.*?\\d)?(?=.*?[a-zA-Z])?[^\\.,\\-=/:\\s][^\\.,\\-=/:]{1,253}[^\\.,\\-=/:\\s]$" } }, { diff --git a/properties_pane/view_level/viewLevelConfig.json b/properties_pane/view_level/viewLevelConfig.json index 6d92ea8..e8daccb 100644 --- a/properties_pane/view_level/viewLevelConfig.json +++ b/properties_pane/view_level/viewLevelConfig.json @@ -275,7 +275,7 @@ making sure that you maintain a proper JSON format. "propertyTooltip": "The key of the tag must be between 1 and 255 UTF-8 characters inclusive, special characters cannot be used in tag names", "propertyType": "text", "validation": { - "regex": "^(?=.*?\\d)?(?=.*?[a-zA-Z])?\\S[^\\.,\\-=\\/:]{1,253}\\S$" + "regex": "^(?=.*?\\d)?(?=.*?[a-zA-Z])?[^\\.,\\-=/:\\s][^\\.,\\-=/:]{1,253}[^\\.,\\-=/:\\s]$" } }, {