make api match intent with less specific type

This commit is contained in:
deads2k
2014-10-08 09:23:25 -04:00
parent 45f9f39b51
commit e348b939bf
2 changed files with 26 additions and 1 deletions

View File

@@ -165,7 +165,7 @@ func StringDiff(a, b string) string {
}
// Takes a list of strings and compiles them into a list of regular expressions
func CompileRegexps(regexpStrings StringList) ([]*regexp.Regexp, error) {
func CompileRegexps(regexpStrings []string) ([]*regexp.Regexp, error) {
regexps := []*regexp.Regexp{}
for _, regexpStr := range regexpStrings {
r, err := regexp.Compile(regexpStr)