Use string.split instead of Array.from
This commit is contained in:
parent
bb334acab6
commit
dbd9a54149
@ -217,7 +217,7 @@ class QueryParser {
|
||||
return result.map((term) => {
|
||||
return term.filter((part) => part.text.trim()).map((part) => {
|
||||
return {
|
||||
text: Array.from(part.text),
|
||||
text: part.text.split(''),
|
||||
reading: part.reading,
|
||||
raw: !part.reading || !part.reading.trim()
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user