is-char-suitable-for-html-attr-name
Version:
Is given character suitable to be in an HTML attribute's name?
11 lines (9 loc) • 517 B
JavaScript
/**
* @name is-char-suitable-for-html-attr-name
* @fileoverview Is given character suitable to be in an HTML attribute's name?
* @version 4.0.9
* @author Roy Revelt, Codsen Ltd
* @license MIT
* {@link https://codsen.com/os/is-char-suitable-for-html-attr-name/}
*/
var t="4.0.9";var i=t;function o(e){return typeof e=="string"&&(e.charCodeAt(0)>96&&e.charCodeAt(0)<123||e.charCodeAt(0)>64&&e.charCodeAt(0)<91||e.charCodeAt(0)>47&&e.charCodeAt(0)<58||e===":"||e==="-")}export{o as isAttrNameChar,i as version};