Development

Git Commit Hash

Matches a full 40-character SHA-1 git commit hash

/^[0-9a-f]{40}$/

Type in the box above to test if your input matches the regex pattern.

Test Cases

e5fa44f2b31c1fb553b6021e7360d07d5d91ff5e
short-hash
GHIJKLMNOPQRSTUVWXYZ

Tags

#dev #git #version-control