Also break on comma

This commit is contained in:
Jackson Harper 2022-09-26 14:49:57 +08:00
parent 3ccb3c6c84
commit d164013ff9

View file

@ -23,7 +23,7 @@ function disableWordSnap(str: String): boolean {
}
const isWhitespace = (c?: string): boolean => {
return !!c && /\u2014|\u2013|\s/.test(c)
return !!c && /\u2014|\u2013|,|\s/.test(c)
}
function findNextWord(