summaryrefslogtreecommitdiff
path: root/static/js/lang.js
diff options
context:
space:
mode:
Diffstat (limited to 'static/js/lang.js')
-rw-r--r--static/js/lang.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/static/js/lang.js b/static/js/lang.js
index 4d17b48..08e1499 100644
--- a/static/js/lang.js
+++ b/static/js/lang.js
@@ -47,7 +47,7 @@ class Reader {
*/
class Wordifier {
constructor(str) {
- this.reader = new Reader(str);
+ this.reader = new Reader(str.trim());
this.tokens = [];
}
wordify() {
@@ -83,7 +83,7 @@ class Wordifier {
}
this.reader.dropWhitespace();
}
- return this.tokens.slice(1);
+ return this.tokens;
}
wordifyString(endChar) {
let acc = '';