about summary refs log tree commit diff
path: root/public
diff options
context:
space:
mode:
authorFire Demon <firedemon@creature.cafe>2020-09-20 02:35:56 -0500
committerFire Demon <firedemon@creature.cafe>2020-09-20 02:35:56 -0500
commitd95c3cb550bbbc44c22bce5ef758f0c2d502bbeb (patch)
tree9351837f74650c6680b527d2000276d68606a983 /public
parenta7ce3b78f6b1f9c39a429986cfb55e7fce4fdae1 (diff)
[Registration] Convert non-Unix newlines before verifying form
Diffstat (limited to 'public')
-rw-r--r--public/registration.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/public/registration.js b/public/registration.js
index 0533a48c3..a859313a2 100644
--- a/public/registration.js
+++ b/public/registration.js
@@ -34,7 +34,7 @@ function handleSubmit(e) {
     const value = element.value;
 
     if (!!element && ['text', 'email', 'textarea'].includes(element.type) && !!value) {
-      values.push(value.trim().toLowerCase());
+      values.push(value.trim().toLowerCase().replace(/\r\n?/g, "\n"));
     }
   }