isHexadecimal.js 189 Bytes RawBlameHistoryPermalink 1 2 3 4 5 6 import assertString from './util/assertString'; var hexadecimal = /^(0x|0h)?[0-9A-F]+$/i; export default function isHexadecimal(str) { assertString(str); return hexadecimal.test(str); }