~skuzzymiglet/feef

551b969916940a9bbc8692178057b2dc594e1b9b — skuzzymiglet 1 year, 4 months ago 502ad13
fix spacing
1 files changed, 2 insertions(+), 2 deletions(-)

M urls.go
M urls.go => urls.go +2 -2
@@ 39,7 39,7 @@ func matchURLSpec(spec string, urls []string) ([]string, error) {
	switch {
	case strings.HasPrefix(spec, "~"):
		if len(urls) == 0 {
			return []string{}, fmt.Errorf("fuzzy URL'%s' provided but no URLs to match against", spec)
			return []string{}, fmt.Errorf("fuzzy URL '%s' provided but no URLs to match against", spec)
		}
		return fuzzy.Find(strings.TrimPrefix(spec, "~"), urls), nil
	case strings.HasPrefix(spec, "/"):


@@ 59,7 59,7 @@ func matchURLSpec(spec string, urls []string) ([]string, error) {
		return matches, nil
	case strings.HasPrefix(spec, "?"):
		if len(urls) == 0 {
			return []string{}, fmt.Errorf("URL glob'%s' provided but no URLs to match against", spec)
			return []string{}, fmt.Errorf("URL glob '%s' provided but no URLs to match against", spec)
		}
		g, err := glob.Compile(strings.TrimPrefix(spec, "?"))
		if err != nil {