Skip to content

Commit 4f06977

Browse files
jem-computerbfirsh
authored andcommitted
Allow underscores in model identifiers
1 parent ab89817 commit 4f06977

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ class Replicate {
8080
*/
8181
async run(identifier, options) {
8282
const pattern =
83-
/^(?<owner>[a-zA-Z0-9-]+?)\/(?<name>[a-zA-Z0-9-]+?):(?<version>[0-9a-fA-F]+)$/;
83+
/^(?<owner>[a-zA-Z0-9-_]+?)\/(?<name>[a-zA-Z0-9-_]+?):(?<version>[0-9a-fA-F]+)$/;
8484
const match = identifier.match(pattern);
8585

8686
if (!match) {

0 commit comments

Comments
 (0)