diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2021-02-28 14:18:18 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-28 14:18:18 -0500 |
commit | 4806414f957ca324fad7d152ef04e34602a7bdbd (patch) | |
tree | 77e28414d19a5a417a208ea13e1a1d492c2404a3 /ext/js/comm | |
parent | 6f76645f4cf0005ddb1022406fdf259a5117ce26 (diff) |
Text source element scanning improvements (#1464)
* Add api.textHasJapaneseCharacters
* Add support for empty query
* Add support for showing the query parser for TextSourceElement
with content that does not start with Japanese text
Diffstat (limited to 'ext/js/comm')
-rw-r--r-- | ext/js/comm/api.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/js/comm/api.js b/ext/js/comm/api.js index 472e464b..a2eb004c 100644 --- a/ext/js/comm/api.js +++ b/ext/js/comm/api.js @@ -168,6 +168,10 @@ class API { return this._invoke('testMecab', {}); } + textHasJapaneseCharacters(text) { + return this._invoke('textHasJapaneseCharacters', {text}); + } + // Utilities _createActionPort(timeout=5000) { |