tool: support hyphen in depot-user name (depot.inc)

Fixes #3668
This commit is contained in:
Alexander Boettcher 2020-02-26 13:46:59 +01:00 committed by Christian Helmuth
parent fce9cd8c22
commit ce27b5ebce

View File

@ -41,21 +41,21 @@ set _missing_depot_archives {}
# Pattern to parse a version-less archive path into <user>, <type>, <name>
#
proc _depot_archive_path_pattern { } {
return {^([\w\d]+)/([\w]+)/([\w\d\-_]+)$} }
return {^([\w\d\-]+)/([\w]+)/([\w\d\-_]+)$} }
#
# Pattern to parse a versioned archive path into <user>, <type>, <name>, <version>
#
proc _depot_archive_versioned_path_pattern { } {
return {^([\w\d]+)/([\w]+)/([\w\d\-_]+)/([\w\d\-\._]+)$} }
return {^([\w\d\-]+)/([\w]+)/([\w\d\-_]+)/([\w\d\-\._]+)$} }
#
# Pattern to parse a binary archive path into <user>, <spec>, <name>.
#
proc _depot_bin_archive_path_pattern { } {
return {^([\w\d]+)/bin/([\w\d]+)/([\w\d\-_]+)$} }
return {^([\w\d\-]+)/bin/([\w\d]+)/([\w\d\-_]+)$} }
#