Use string.split instead of Array.from

This commit is contained in:
toasted-nutbread 2019-12-08 15:20:44 -05:00
parent bb334acab6
commit dbd9a54149

View File

@ -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()
};