tewip-ai 0.70.9 → 0.70.10

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.
@@ -62,12 +62,25 @@ export function impliedLandmark(layerName) {
62
62
  return null;
63
63
  }
64
64
  const PLACEHOLDER = /^(?:lorem ipsum|placeholder|label|text|body|paragraph|xxx+|\.\.\.|…)$/i;
65
- /** Text worth checking for: real words a person would notice missing. */
65
+ /**
66
+ * Text worth checking for: real words a person would notice missing - **or a number**.
67
+ *
68
+ * This required two consecutive letters, which filters the noise it was written for (a lone glyph,
69
+ * an ellipsis, "Label") and also silently discarded every number in the design. Field-tested: a
70
+ * checkout frame specifying **£54.99** against a page serving **£59.99** produced a byte-identical
71
+ * report - "5 check(s) from the design, 3 met, 2 different" - because the price was never one of the
72
+ * five. A wrong price on a checkout screen is the drift a design review exists to catch, and it was
73
+ * the one kind that could not be seen.
74
+ *
75
+ * A run of two or more digits now counts, so a price, a total, a quantity or a rate becomes a check.
76
+ * A single character still does not, nor does punctuation on its own: `3`, `—` and `...` are noise,
77
+ * `£54.99` and `20%` are the design speaking.
78
+ */
66
79
  function meaningful(text) {
67
80
  const t = text.trim();
68
81
  if (t.length < 2 || t.length > 120)
69
82
  return false;
70
- if (!/[A-Za-z]{2}/.test(t))
83
+ if (!/[A-Za-z]{2}/.test(t) && !/\d{2}/.test(t))
71
84
  return false;
72
85
  return !PLACEHOLDER.test(t);
73
86
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tewip-ai",
3
- "version": "0.70.9",
3
+ "version": "0.70.10",
4
4
  "mcpName": "io.github.hmamut39/tewip",
5
5
  "description": "Tewip finds why each failing test failed - real bug, flaky test, environment, test data or changed selector - for any stack, from the command line, CI, or your editor.",
6
6
  "keywords": [