✨ Get pattern from name
This commit is contained in:
parent
5fb296c176
commit
aaa92bf151
1 changed files with 3 additions and 0 deletions
|
|
@ -18,6 +18,9 @@ func (s *Show) Match(path string) (bool, error) {
|
|||
if s == nil {
|
||||
return false, ErrNilPointer
|
||||
}
|
||||
if !s.Anime && s.Name != "" && s.Pattern == "" {
|
||||
s.Pattern = strings.ReplaceAll(s.Name, " ", ".")
|
||||
}
|
||||
if s.Pattern != "" {
|
||||
return s.matchRegexp(path)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue