non-4byte-chars-pattern
; const input = document;input; inputvalue = 'Hello (^ ^)';inputvaliditypatternMismatch; //=> false inputvalue = 'Hello 🤗';inputvaliditypatternMismatch; //=> true
Installation
npm
npm install non-4byte-chars-pattern
bower
bower install non-4byte-chars-pattern
API
non4byteCharsPattern
Type: String
Note that this pattern regards an empty string ''
as valid. If you want to disallow blank input, use required
attribute instead.
Related project
non-4byte-chars-regex - RegExp
version of this module