diff options
author | Linus Lee <linus@thesephist.com> | 2020-09-24 06:42:23 -0400 |
---|---|---|
committer | Linus Lee <linus@thesephist.com> | 2020-09-24 06:42:23 -0400 |
commit | cee091893a2d9d9aad26959dab095e71bc43b895 (patch) | |
tree | 6cc0aeb50f2a4edfbce80bdba048da89ce21f7ba /static/js/lang.js | |
parent | aafa74e7bce6e47052c58a663ac3f2013649711e (diff) | |
download | tabloid-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.js | 4 |
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 = ''; |