isRelPathSpecifier returns true if the specifier is a local path.
(specifier string)
| 24 | |
| 25 | // isRelPathSpecifier returns true if the specifier is a local path. |
| 26 | func isRelPathSpecifier(specifier string) bool { |
| 27 | return strings.HasPrefix(specifier, "./") || strings.HasPrefix(specifier, "../") |
| 28 | } |
| 29 | |
| 30 | // isAbsPathSpecifier returns true if the specifier is an absolute path. |
| 31 | func isAbsPathSpecifier(specifier string) bool { |
no outgoing calls
no test coverage detected