« get me outta code hell

validators: isContentString: accept empty string - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2024-09-30 21:38:55 -0300
committer(quasar) nebula <qznebula@protonmail.com>2024-09-30 21:38:55 -0300
commit12e2fa110e27655b4d10dfdb013beee253a975ba (patch)
treea651001dbc320e8f1685992563735d8719ac4845
parent06ea3f5e50fc3c72d24c4e4002279a451c41a08c (diff)
validators: isContentString: accept empty string
Evil
-rw-r--r--src/data/validators.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/data/validators.js b/src/data/validators.js
index 4bdbe5cd..b7dbb629 100644
--- a/src/data/validators.js
+++ b/src/data/validators.js
@@ -468,7 +468,7 @@ const trimWhitespaceNearEndRegexp =
   / +$/gm;
 
 export function isContentString(content) {
-  isStringNonEmpty(content);
+  isString(content);
 
   const mainAggregate = openAggregate({
     message: `Errors validating content string`,