@sarimarcus/content-sites-core 0.74.2 → 0.74.3
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/CHANGELOG.md +4 -0
- package/dist/schema/agenda.js +1 -1
- package/package.json +1 -1
- package/src/schema/agenda.ts +1 -1
package/CHANGELOG.md
CHANGED
package/dist/schema/agenda.js
CHANGED
|
@@ -6,7 +6,7 @@ export const AGENDA_CATEGORIES = [
|
|
|
6
6
|
/** `dated` items carry real dates; `recurring` items are the thin-week fallback (markets, free-entry slots). */
|
|
7
7
|
export const AGENDA_KINDS = ['dated', 'recurring'];
|
|
8
8
|
const DAY = /^\d{4}-\d{2}-\d{2}$/;
|
|
9
|
-
const DAY_OR_LOCAL_TIME = /^\d{4}-\d{2}-\d{2}(T\d
|
|
9
|
+
const DAY_OR_LOCAL_TIME = /^\d{4}-\d{2}-\d{2}(T([01]\d|2[0-3]):[0-5]\d)?$/;
|
|
10
10
|
const INTERNAL_HREF = /^\/[a-z0-9-]+(\/[a-z0-9-]+)*\/?(#[a-z0-9-]+)?$/;
|
|
11
11
|
/** Field issues of one agenda item; `[]` when it satisfies the contract. */
|
|
12
12
|
export function agendaItemIssues(item, path = '') {
|
package/package.json
CHANGED
package/src/schema/agenda.ts
CHANGED
|
@@ -62,7 +62,7 @@ export interface AgendaSnapshot {
|
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
const DAY = /^\d{4}-\d{2}-\d{2}$/;
|
|
65
|
-
const DAY_OR_LOCAL_TIME = /^\d{4}-\d{2}-\d{2}(T\d
|
|
65
|
+
const DAY_OR_LOCAL_TIME = /^\d{4}-\d{2}-\d{2}(T([01]\d|2[0-3]):[0-5]\d)?$/;
|
|
66
66
|
const INTERNAL_HREF = /^\/[a-z0-9-]+(\/[a-z0-9-]+)*\/?(#[a-z0-9-]+)?$/;
|
|
67
67
|
|
|
68
68
|
/** Field issues of one agenda item; `[]` when it satisfies the contract. */
|