@vectoriox/iox-ui 5.59.0 → 5.59.1

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vectoriox/iox-ui",
3
- "version": "5.59.0",
3
+ "version": "5.59.1",
4
4
  "peerDependencies": {
5
5
  "@angular/common": ">=20.0.0",
6
6
  "@angular/core": ">=20.0.0",
@@ -50,7 +50,8 @@ export function matchBusinessType(text: string, types: ReadonlyArray<BusinessTyp
50
50
  return matchBusinessTypes(text, types)[0]?.id ?? null;
51
51
  }
52
52
 
53
- const ADDRESS_RE = /(?:https?:\/\/)?(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z]{2,}(?:\/[^\s<>"']*)?/gi;
53
+ // A port stays with its host ("staging.example:8080"): dropping it would read a DIFFERENT site.
54
+ const ADDRESS_RE = /(?:https?:\/\/)?(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z]{2,}(?::\d{1,5})?(?:\/[^\s<>"']*)?/gi;
54
55
  const TRAILING = /[.,;:!?)\]}'"״׳]+$/;
55
56
 
56
57
  /** An address as a chip shows it: no scheme, no `www.`, no trailing punctuation or slash, lower-case host. */