sha1-regex is a regular expression that matches hex-encoded sha-1 hashes.
$ npm install sha1-regex
var sha1 = require('sha1-regex')
sha1.test('17413f944145f37dcaa9bc55d9a201a248a08aae')
> true
sha1.test('nope')
> false
see if a string is a sha-1 hash
sha1-regex is a regular expression that matches hex-encoded sha-1 hashes.
$ npm install sha1-regex
var sha1 = require('sha1-regex')
sha1.test('17413f944145f37dcaa9bc55d9a201a248a08aae')
> true
sha1.test('nope')
> false
see if a string is a sha-1 hash