Fixes mid-word backspace issues.

This commit is contained in:
jahorton 2019-07-22 13:06:46 +07:00
parent 9137eca2e7
commit 4ae9394f51

View file

@ -12,6 +12,11 @@ class ModelCompositor {
// doesn't prevent loading on IE.
//let whitespaceRemover = /.*[\u0009\u000A\u000D\u0020\u00a0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u2028\u2029\u202f\u205f\u3000]/iu;
// Filter out null-inserts; their high probability can cause issues.
if(transform.insert == '') { // Can actually register as 'whitespace'.
return false;
}
// Temp solution:
let whitespaceRemover = /.*\s/; // At least handles standard whitespace.
let insert = transform.insert;