From b154efef70cffd3374a4e410cbecb89ce3ea1690 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Sat, 6 Jan 2024 10:53:21 -0400 Subject: validators: isContentString: tweak trim whitespace pos messaging --- src/data/things/validators.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/data/things/validators.js b/src/data/things/validators.js index 1ef23d07..fb6f1da0 100644 --- a/src/data/things/validators.js +++ b/src/data/things/validators.js @@ -511,13 +511,13 @@ export function isContentString(content) { const where = (match[0].length === containingLine.length - ? `all of ${linePart}` + ? `as all of ${linePart}` : columnNumber === 0 ? (isMultiline - ? `start of ${linePart}` + ? `at start of ${linePart}` : `at start`) : (isMultiline - ? `end of ${linePart}` + ? `at end of ${linePart}` : `at end`)); const whitespacePart = @@ -525,7 +525,7 @@ export function isContentString(content) { const parts = [ `Matched ${whitespacePart}`, - `(${where})`, + where, ]; trimWhitespaceAggregate.push(new TypeError(parts.join(` `))); -- cgit 1.3.0-6-gf8a5