* etc/teams.scm (find-teams-by-scope): Differentiate between raw strings
and regexps. Make raw string matches strict.
Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
(srfi srfi-9)
(srfi srfi-26)
(ice-9 format)
+ (ice-9 regex)
(ice-9 match)
(guix ui)
(git))
(hash-fold
(lambda (key team acc)
(if (any (lambda (file)
- (any (lambda (scope)
- ;; XXX: Add regex support?
- (string-prefix? scope file))
+ (any (match-lambda
+ ((? string? scope)
+ (string=? scope file))
+ ((? regexp? scope)
+ (regexp-exec scope file)))
(team-scope team)))
files)
(cons team acc)