@vectoriox/iox-ui 5.58.1 → 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/fesm2022/vectoriox-iox-ui-generation-core.mjs +25 -2
- package/fesm2022/vectoriox-iox-ui-generation-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-harness-core.mjs +2 -1
- package/fesm2022/vectoriox-iox-ui-harness-core.mjs.map +1 -1
- package/generation-core/index.d.ts +11 -2
- package/package.json +1 -1
- package/src/generation-core/site-plan-schema.ts +2 -2
- package/src/generation-core/site-plan.model.ts +7 -1
- package/src/generation-core/site-spec.generated.ts +18 -0
- package/src/generation-core/validate-site-plan.ts +5 -1
- package/src/harness-core/intake.ts +2 -1
|
@@ -4304,7 +4304,8 @@ function matchBusinessTypes(text, types = BUSINESS_TYPES) {
|
|
|
4304
4304
|
function matchBusinessType(text, types = BUSINESS_TYPES) {
|
|
4305
4305
|
return matchBusinessTypes(text, types)[0]?.id ?? null;
|
|
4306
4306
|
}
|
|
4307
|
-
|
|
4307
|
+
// A port stays with its host ("staging.example:8080"): dropping it would read a DIFFERENT site.
|
|
4308
|
+
const ADDRESS_RE = /(?:https?:\/\/)?(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z]{2,}(?::\d{1,5})?(?:\/[^\s<>"']*)?/gi;
|
|
4308
4309
|
const TRAILING = /[.,;:!?)\]}'"״׳]+$/;
|
|
4309
4310
|
/** An address as a chip shows it: no scheme, no `www.`, no trailing punctuation or slash, lower-case host. */
|
|
4310
4311
|
function normalizeAddress(raw) {
|