fix: compatible with Sogou input (#277)

This commit is contained in:
Lykin 2024-07-02 11:37:19 +08:00
parent ea44253c02
commit 410dcd9e57
1 changed files with 2 additions and 0 deletions

View File

@ -313,6 +313,8 @@ const updateInput = (data) => {
if (data == null || data.length <= 0) {
return
}
// replace &nbsp;(Non-Breaking Space) with normal blank space
data = data.replace(/\u00A0/g, ' ')
if (termInst == null) {
return