Introduce regexp query matching.

This commit is contained in:
Andrey Smirnov
2014-07-15 19:00:06 +04:00
parent a632469890
commit 56d777af0a
8 changed files with 66 additions and 15 deletions
+1 -1
View File
@@ -295,7 +295,7 @@ func (p *Package) MatchesDependency(dep Dependency) bool {
matched, err := filepath.Match(dep.Version, p.Version)
return err == nil && matched
case VersionRegexp:
panic("regexp matching not implemented yet")
return dep.Regexp.FindStringIndex(p.Version) != nil
}
panic("unknown relation")