@26lights/orcha 0.41.99 → 0.41.100

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/orcha.es.js CHANGED
@@ -8148,7 +8148,7 @@ const bv = { class: "ao-comments__header" }, wv = ["onSubmit"], $v = ["placehold
8148
8148
  const P = o.value.trim();
8149
8149
  if (!P)
8150
8150
  return;
8151
- const A = Array.from(P.matchAll(/@(\w+)/g)).map((R) => R[1]), D = c.value.filter((R) => A.includes(R.name)).map((R) => R.id);
8151
+ const A = Array.from(P.matchAll(/@([\p{L}\p{M}0-9-_]+)/gu)).map((R) => R[1]), D = c.value.filter((R) => A.includes(R.name)).map((R) => R.id);
8152
8152
  e("createComment", { authorId: a.userId, message: P, mentionedUserIds: D }), o.value = "";
8153
8153
  }, d = (P, A) => {
8154
8154
  e("updateComment", {
@@ -8160,8 +8160,8 @@ const bv = { class: "ao-comments__header" }, wv = ["onSubmit"], $v = ["placehold
8160
8160
  }, c = M(
8161
8161
  () => a.users.filter((P) => P.firstName || P.lastName).map(
8162
8162
  (P) => {
8163
- const A = [P.firstName, P.lastName].filter(Boolean).join("_");
8164
- return { id: P.id, name: A };
8163
+ const D = [P.firstName, P.lastName].filter(Boolean).join("_").replace(/\s+/g, "_");
8164
+ return { id: P.id, name: D };
8165
8165
  }
8166
8166
  )
8167
8167
  ), v = q(""), h = q(!1), w = q({ top: 0, left: 0 }), _ = q(), g = (P) => {