@squiz/render-runtime-lib 1.71.0 → 1.73.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6893,8 +6893,9 @@ var require_getValidationDataForMatrixUri = __commonJS({
6893
6893
  identifier: validationData
6894
6894
  };
6895
6895
  }
6896
- const assetIdRegex = /^\d+(?::.+)?$/;
6897
- if (assetIdRegex.test(assetId) === false) {
6896
+ const realAssetIdRegex = /^\d+$/;
6897
+ const [realAssetId] = assetId.split(":");
6898
+ if (realAssetIdRegex.test(realAssetId) === false) {
6898
6899
  const validationData = {
6899
6900
  message: "Matrix Asset Id has invalid format, must match /^d+(?::.+)?$/",
6900
6901
  data: {
@@ -6893,8 +6893,9 @@ var require_getValidationDataForMatrixUri = __commonJS({
6893
6893
  identifier: validationData
6894
6894
  };
6895
6895
  }
6896
- const assetIdRegex = /^\d+(?::.+)?$/;
6897
- if (assetIdRegex.test(assetId) === false) {
6896
+ const realAssetIdRegex = /^\d+$/;
6897
+ const [realAssetId] = assetId.split(":");
6898
+ if (realAssetIdRegex.test(realAssetId) === false) {
6898
6899
  const validationData = {
6899
6900
  message: "Matrix Asset Id has invalid format, must match /^d+(?::.+)?$/",
6900
6901
  data: {
@@ -6893,8 +6893,9 @@ var require_getValidationDataForMatrixUri = __commonJS({
6893
6893
  identifier: validationData
6894
6894
  };
6895
6895
  }
6896
- const assetIdRegex = /^\d+(?::.+)?$/;
6897
- if (assetIdRegex.test(assetId) === false) {
6896
+ const realAssetIdRegex = /^\d+$/;
6897
+ const [realAssetId] = assetId.split(":");
6898
+ if (realAssetIdRegex.test(realAssetId) === false) {
6898
6899
  const validationData = {
6899
6900
  message: "Matrix Asset Id has invalid format, must match /^d+(?::.+)?$/",
6900
6901
  data: {
@@ -5055,7 +5055,7 @@
5055
5055
  },
5056
5056
  "info": {
5057
5057
  "title": "@squiz/render-runtime-lib",
5058
- "version": "1.70.1",
5058
+ "version": "1.72.0",
5059
5059
  "description": "Package of rendering utilities for components",
5060
5060
  "license": {
5061
5061
  "name": "ISC"