Skip to content

Instantly share code, notes, and snippets.

@crisog
Created October 4, 2021 16:28
Show Gist options
  • Save crisog/1abec80090317fcc0d703aeab455a493 to your computer and use it in GitHub Desktop.
Save crisog/1abec80090317fcc0d703aeab455a493 to your computer and use it in GitHub Desktop.
function isHex(str) {
return /^[A-F0-9]+$/i.test(str)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment