Closed packrat386 closed 8 years ago
The previous regex would match any number of instances of any of the supported SHA formats, e.g. SHA111. Instead of matching any number, we want to match optionally one.
Also added some tests that this rejects invalid digest formats.
The previous regex would match any number of instances of any of the supported SHA formats, e.g. SHA111. Instead of matching any number, we want to match optionally one.
Also added some tests that this rejects invalid digest formats.