@ztimson/utils 0.22.1 → 0.22.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/index.cjs CHANGED
@@ -1126,7 +1126,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
1126
1126
  __publicField(this, "methods");
1127
1127
  var _a;
1128
1128
  if (typeof Event == "object") return Object.assign(this, Event);
1129
- let [p, scope, method] = Event.split(":");
1129
+ let [p, scope, method] = Event.replaceAll(/\/{2,}/g, "/").split(":");
1130
1130
  if (!method) method = scope || "*";
1131
1131
  if (p == "*" || !p && method == "*") {
1132
1132
  p = "";