@finbheara/domain 0.32.0 → 0.33.0

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/README.md CHANGED
@@ -406,6 +406,9 @@ compTitle("Girls Under 13 B").split; // "b"
406
406
  compTitle("Treble Reel Special").invalidReason(); // "no-age"
407
407
  ```
408
408
 
409
+ A spoken dash is read as a space: `boys u-17`, `Boys U-17` and `boys u- 17` read as `boys u17`,
410
+ `girls o-16` as `girls o16`, and `under-15` as `under 15`.
411
+
409
412
  A band split into parallel competitions (`Girls Under 13 A`, `Girls Under 13 B`) answers every
410
413
  split, unless the title prints the letter. A title naming no band names nothing. Hand in the
411
414
  entries of the kind you mean: a solo championship's ages are often a team event's too.
@@ -40,7 +40,7 @@ function roundFold(print) {
40
40
  return ` ${toAscii(print).toLowerCase().replace(/(\d)(\p{L})/gu, "$1 $2").replace(/[-–—,/()&+:;|.']/g, " ").replace(/\s+/g, " ").trim()} `;
41
41
  }
42
42
  var SPLIT = / ([a-d]) $|(?:\d|girls?|boys?|lad(?:y|ies)|m[ae]n|mixed) ([a-d])(?= )/;
43
- var spoken = (print) => print.replace(/\b(under|over)-(?=\d)/giu, "$1 ");
43
+ var spoken = (print) => print.replace(/\b(under|over|u|o)-(?=[ \t]*\d)/giu, "$1 ");
44
44
  function read(print, ctx, agePrint) {
45
45
  const actx = { year: ctx.year ?? null, ...ctx.ladder ? { ladder: ctx.ladder } : {} };
46
46
  let age;
package/dist/schedule.js CHANGED
@@ -2,7 +2,7 @@ import"./chunks/place-8k74cr5j.js";
2
2
  import {
3
3
  compTitle2,
4
4
  matchTitle2
5
- } from "./chunks/place-bhedwqd1.js";
5
+ } from "./chunks/place-fsxsxdhk.js";
6
6
 
7
7
  function hallKey(hall) {
8
8
  return hall.normalize("NFKD").replace(/\p{M}/gu, "").toLowerCase().replace(/[^a-z0-9]+/g, " ").trim();
package/dist/title.js CHANGED
@@ -6,7 +6,7 @@ import {
6
6
  titleRelation2,
7
7
  ladderOf2,
8
8
  matchTitle2
9
- } from "./chunks/place-bhedwqd1.js";
9
+ } from "./chunks/place-fsxsxdhk.js";
10
10
  import"./chunks/place-8k74cr5j.js";
11
11
  export {
12
12
  compTitle2 as compTitle,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finbheara/domain",
3
- "version": "0.32.0",
3
+ "version": "0.33.0",
4
4
  "description": "Places, CLRG regions, school names, ages, dances, competition titles and schedules, and a person's print in its role, as they are printed: read, compared and told apart",
5
5
  "keywords": [
6
6
  "places",
@@ -90,5 +90,8 @@
90
90
  },
91
91
  "dependencies": {
92
92
  "@finbheara/names": "0.20.0"
93
+ },
94
+ "devDependencies": {
95
+ "typescript": "7.0.2"
93
96
  }
94
97
  }