Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f6ecb093 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Update comment text of SrcIsModuleWithTag()"

parents bd14f9a9 ba9ea32f
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -2829,9 +2829,10 @@ func SrcIsModule(s string) (module string) {
	return module
}

// SrcIsModule 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
// if the input was not a module reference.
// SrcIsModuleWithTag decodes module references in the format ":unqualified-name{.tag}" or
// "//namespace:name{.tag}" into the module name and tag, ":unqualified-name" or "//namespace:name"
// 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) {
	if len(s) > 1 {
		if s[0] == ':' {