aboutsummaryrefslogtreecommitdiff
path: root/bootstrap/comments/frontend/eoltrim.js
diff options
context:
space:
mode:
Diffstat (limited to 'bootstrap/comments/frontend/eoltrim.js')
-rw-r--r--bootstrap/comments/frontend/eoltrim.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/bootstrap/comments/frontend/eoltrim.js b/bootstrap/comments/frontend/eoltrim.js
new file mode 100644
index 0000000..d42c48d
--- /dev/null
+++ b/bootstrap/comments/frontend/eoltrim.js
@@ -0,0 +1,5 @@
+// Trims leading and trailing newlines from a string (eoltrim.js)
+HashOverConstructor.prototype.EOLTrim = function (string)
+{
+ return string.replace (this.regex.EOLTrim, '');
+};