@calcit/procs 0.8.13 → 0.8.14
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/lib/calcit.procs.mjs +3 -0
- package/lib/package.json +2 -2
- package/package.json +2 -2
- package/ts-src/calcit.procs.mts +3 -0
package/lib/calcit.procs.mjs
CHANGED
|
@@ -988,6 +988,9 @@ export let starts_with_$q_ = (xs, y) => {
|
|
|
988
988
|
if (xs instanceof CalcitTag && y instanceof CalcitTag) {
|
|
989
989
|
return xs.value.startsWith(y.value);
|
|
990
990
|
}
|
|
991
|
+
if (xs instanceof CalcitTag && typeof y === "string") {
|
|
992
|
+
return xs.value.startsWith(y);
|
|
993
|
+
}
|
|
991
994
|
throw new Error("expected strings or tags");
|
|
992
995
|
};
|
|
993
996
|
export let ends_with_$q_ = (xs, y) => {
|
package/lib/package.json
CHANGED
package/package.json
CHANGED
package/ts-src/calcit.procs.mts
CHANGED
|
@@ -1086,6 +1086,9 @@ export let starts_with_$q_ = (xs: CalcitValue, y: CalcitValue): boolean => {
|
|
|
1086
1086
|
if (xs instanceof CalcitTag && y instanceof CalcitTag) {
|
|
1087
1087
|
return xs.value.startsWith(y.value);
|
|
1088
1088
|
}
|
|
1089
|
+
if (xs instanceof CalcitTag && typeof y === "string") {
|
|
1090
|
+
return xs.value.startsWith(y);
|
|
1091
|
+
}
|
|
1089
1092
|
throw new Error("expected strings or tags");
|
|
1090
1093
|
};
|
|
1091
1094
|
export let ends_with_$q_ = (xs: string, y: string): boolean => {
|