@kystverket/styrbord 1.3.1 → 1.3.2

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/dist/main.js CHANGED
@@ -1193,9 +1193,9 @@ const T6 = "_footer_aepms_2", X6 = "_footerContainer_aepms_10", G6 = "_linksCont
1193
1193
  "en-US": p8
1194
1194
  };
1195
1195
  function q1(r, n) {
1196
- if (r)
1196
+ if (r && n)
1197
1197
  if (n.includes(".")) {
1198
- const e = n.split(".", 2), t = r[e[0]];
1198
+ const e = [n.substring(0, n.indexOf(".")), n.substring(n.indexOf(".") + 1)], t = r[e[0]];
1199
1199
  return typeof t == "string" || t instanceof String ? t ? String(t) : void 0 : q1(t, e[1]);
1200
1200
  } else
1201
1201
  return r[n] ? String(r[n]) : void 0;