I am looking for a way to detect non-ascii characters in a string and return them as failure:
The current method successfully detects one non-ascii character:
/[\x20-\x7E\s]/.test('☃')
However, it fails when the non-ascii character is part of a string:
/[\x20-\x7E\s]/.test('sus☃')