Merge "Update comment text of SrcIsModuleWithTag()"
This commit is contained in:
@@ -2829,9 +2829,10 @@ func SrcIsModule(s string) (module string) {
|
|||||||
return module
|
return module
|
||||||
}
|
}
|
||||||
|
|
||||||
// SrcIsModule decodes module references in the format ":unqualified-name{.tag}" or
|
// SrcIsModuleWithTag decodes module references in the format ":unqualified-name{.tag}" or
|
||||||
// "//namespace:name{.tag}" into the module name and an empty string for the tag, or empty strings
|
// "//namespace:name{.tag}" into the module name and tag, ":unqualified-name" or "//namespace:name"
|
||||||
// if the input was not a module reference.
|
// into the module name and an empty string for the tag, or empty strings if the input was not a
|
||||||
|
// module reference.
|
||||||
func SrcIsModuleWithTag(s string) (module, tag string) {
|
func SrcIsModuleWithTag(s string) (module, tag string) {
|
||||||
if len(s) > 1 {
|
if len(s) > 1 {
|
||||||
if s[0] == ':' {
|
if s[0] == ':' {
|
||||||
|
Reference in New Issue
Block a user