diff options
author | ache <ache@ache.one> | 2020-02-24 21:28:37 +0100 |
---|---|---|
committer | ache <ache@ache.one> | 2020-02-24 21:28:37 +0100 |
commit | 8fcdb01b94b1a0cbb185ed81ca6a464607265794 (patch) | |
tree | f5fb9d448c53052f47173f06065bb3ad9ba3d039 /assets | |
parent | Format fix (diff) |
Regex support
Diffstat (limited to 'assets')
-rw-r--r-- | assets/web.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/assets/web.js b/assets/web.js index 46b6810..7b9bce5 100644 --- a/assets/web.js +++ b/assets/web.js @@ -23,7 +23,9 @@ const web = new Vue({ response.arrayBuffer().then(res => { this.definitions = msgpack.decode(new Uint8Array(res)); if( this.definitions && this.definitions[0] && this.definitions[0].mot) { - this.word = this.definitions[0].mot; + if(!this.word.includes('_')) { + this.word = this.definitions[0].mot; + } } }); } |