Skip to content

Commit

Permalink
Merge pull request #33 from harlanx:fix/better-episode-regex-pattern
Browse files Browse the repository at this point in the history
fix: Better episode regex pattern
  • Loading branch information
harlanx authored Aug 3, 2024
2 parents a062c14 + 6bdbf6f commit 6e92a82
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/services/file_grouper.dart
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ class FileGrouper {
int? result;
// Extract the episode string
final episodePattern = RegExp(
r'Episode.\d+|E.\d+|Episode \d+|E \d+|(?<!Season\s|S\s)-?\b\d{2}\b',
r'(?<!\.\d{4})Episode\s*\d+|E\s*\d+|(?<=Season\s|S\s)-?\b\d{2}\b',
caseSensitive: false,
);
final episodeMatch = episodePattern.stringMatch(text);
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description: Automatically manage and mux series or movie files to the common co
# pub.dev using `flutter pub publish`. This is preferred for private packages.
publish_to: 'none' # Remove this line if you wish to publish to pub.dev

version: 0.6.6+25
version: 0.6.7+26

environment:
sdk: '>=3.1.0 <4.0.0'
Expand Down

0 comments on commit 6e92a82

Please sign in to comment.