« get me outta code hell

htmlify upd8.js, remove fix-whitespace dependency - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/util/replacer.js
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2022-11-20 14:31:17 -0400
committer(quasar) nebula <qznebula@protonmail.com>2022-11-20 14:31:35 -0400
commitb7633208507e3cd25ef7f7018759a0402c13a2f8 (patch)
tree8a735ecdb4c7f802320a0d8b26595171d8053656 /src/util/replacer.js
parente674b186ff755eaa8fb26f5885ac997e0ff0330e (diff)
htmlify upd8.js, remove fix-whitespace dependency
Diffstat (limited to 'src/util/replacer.js')
-rw-r--r--src/util/replacer.js12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/util/replacer.js b/src/util/replacer.js
index 70c17e5..ea5a674 100644
--- a/src/util/replacer.js
+++ b/src/util/replacer.js
@@ -1,7 +1,5 @@
 /** @format */
 
-import fixWS from 'fix-whitespace';
-
 import {logError, logWarn} from './cli.js';
 import {escapeRegex} from './sugar.js';
 
@@ -331,11 +329,11 @@ export function parseInput(input) {
 
     const cursor = i - lineStart;
 
-    throw new SyntaxError(fixWS`
-      Parse error (at pos ${i}): ${message}
-      ${line}
-      ${'-'.repeat(cursor) + '^'}
-    `);
+    throw new SyntaxError([
+      `Parse error (at pos ${i}): ${message}`,
+      line,
+      '-'.repeat(cursor) + '^',
+    ].join('\n'));
   }
 }