fetches a given list of globs from the assets. also be durable to 'v' prefixing version tags Signed-off-by: Alex Suraci <asuraci@pivotal.io>
14 lines
165 B
Go
14 lines
165 B
Go
package resource
|
|
|
|
import "unicode"
|
|
|
|
func dropLeadingAlpha(s string) string {
|
|
for i, r := range s {
|
|
if !unicode.IsLetter(r) {
|
|
return s[i:]
|
|
}
|
|
}
|
|
|
|
return ""
|
|
}
|