summaryrefslogtreecommitdiff
path: root/static/js/lang.js
diff options
context:
space:
mode:
authorLinus Lee <linus@thesephist.com>2020-09-24 06:42:23 -0400
committerLinus Lee <linus@thesephist.com>2020-09-24 06:42:23 -0400
commitcee091893a2d9d9aad26959dab095e71bc43b895 (patch)
tree6cc0aeb50f2a4edfbce80bdba048da89ce21f7ba /static/js/lang.js
parentaafa74e7bce6e47052c58a663ac3f2013649711e (diff)
downloadtabloid-fake-closure-cee091893a2d9d9aad26959dab095e71bc43b895.tar.gz
tabloid-fake-closure-cee091893a2d9d9aad26959dab095e71bc43b895.zip
Nail down basic app styles / layout
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 = '';