« get me outta code hell

validators: isContentString: tweak trim whitespace pos messaging - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/data
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2024-01-06 10:53:21 -0400
committer(quasar) nebula <qznebula@protonmail.com>2024-01-06 12:50:32 -0400
commitb154efef70cffd3374a4e410cbecb89ce3ea1690 (patch)
tree4502a5370935ad3cc18509cb6dabcaa55a3f94e2 /src/data
parentb68655c0c217b372fd68a6d636ef3178b9edb427 (diff)
validators: isContentString: tweak trim whitespace pos messaging
Diffstat (limited to 'src/data')
-rw-r--r--src/data/things/validators.js8
1 files changed, 4 insertions, 4 deletions
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(` `)));