From 8fcdb01b94b1a0cbb185ed81ca6a464607265794 Mon Sep 17 00:00:00 2001 From: ache Date: Mon, 24 Feb 2020 21:28:37 +0100 Subject: Regex support --- assets/web.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'assets') 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; + } } }); } -- cgit v1.2.3