Answered
Nonbreaking space and GREP in UXP
How to check if a character is a nonbreaking space in UXP?
if (chars[chars.indexOf(char) - 1].contents === " ") {
console.log("yes");
}I can't use \u00A0 or /~S/. The first one doesn't work, the second can't be used in .jsx UXP.
