@prismicio/types-internal 0.3.1 → 0.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.
|
@@ -25,7 +25,7 @@ exports.WidgetTypes = {
|
|
|
25
25
|
Group: GroupContent_1.GroupContentType,
|
|
26
26
|
slices: slices_1.SlicesContentType,
|
|
27
27
|
};
|
|
28
|
-
const widgetKeyRegex = new RegExp("^[^<>]
|
|
28
|
+
const widgetKeyRegex = new RegExp("^[^<>]*$");
|
|
29
29
|
exports.WidgetKey = (0, function_1.refineType)(t.string, "WidgetKey", (s) => widgetKeyRegex.test(s));
|
|
30
30
|
exports.Widget = {
|
|
31
31
|
fromJson(widgetKey, widgetValue, widgetTypes, widgetPositions) {
|
package/package.json
CHANGED
|
@@ -27,7 +27,7 @@ export const WidgetTypes = {
|
|
|
27
27
|
slices: SlicesContentType,
|
|
28
28
|
} as const
|
|
29
29
|
|
|
30
|
-
const widgetKeyRegex = new RegExp("^[^<>]
|
|
30
|
+
const widgetKeyRegex = new RegExp("^[^<>]*$")
|
|
31
31
|
export const WidgetKey = refineType(t.string, "WidgetKey", (s: string) =>
|
|
32
32
|
widgetKeyRegex.test(s),
|
|
33
33
|
)
|