Add identifier grammar

Signed-off-by: Derek McGowan <derek@mcgstyle.net> (github: dmcgowan)
This commit is contained in:
Derek McGowan 2016-06-15 14:04:21 -07:00
parent 9a43b8f696
commit 21db8e8597
No known key found for this signature in database
GPG key ID: F58C5D0A4405ACDB
3 changed files with 86 additions and 0 deletions

View file

@ -19,6 +19,9 @@
// digest-algorithm-separator := /[+.-_]/
// digest-algorithm-component := /[A-Za-z][A-Za-z0-9]*/
// digest-hex := /[0-9a-fA-F]{32,}/ ; At least 128 bit digest value
//
// identifier := /[a-f0-9]{64}/
// short-identifier := /[a-f0-9]{6,64}/
package reference
import (