forked from cross-seed/cross-seed
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(regex): title capturing trailing separator (cross-seed#524)
## TV REGEX <title> group capturing trailing separator the regex previously captures separators trailing <title> capture group needlessly when separated with a space prior to SxxExx/Sxx (" - ") and will add the non-space separator to the search string. this usually applies when data searching an arr library/root folder. this PR fixes this behavior and removes the separators after title from title's capture group. - [x] EP_REGEX Test Cases: https://regex101.com/r/fuE0bM/2 - [x] SEASON_REGEX Test Cases: https://regex101.com/r/fuE0bM/1 (also removed unused variable from qbit injection function)
- Loading branch information
Showing
3 changed files
with
4 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters