Skip to content

Commit

Permalink
Strip underscores
Browse files Browse the repository at this point in the history
  • Loading branch information
mmgoodnow committed Feb 2, 2022
1 parent c844991 commit c3618cd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@ node_modules
npm-debug.log
output
input
config.js
docker-compose.yml
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,4 @@ input/
*.heapsnapshot
qbit/
cache.json
docker-compose.yml
2 changes: 1 addition & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export function reformatTitleForSearching(name: string): string {
const fullMatch =
episodeMatch?.[0] ?? seasonMatch?.[0] ?? movieMatch?.[0] ?? name;
return fullMatch
.replace(/[.()[\]]/g, " ")
.replace(/[._()[\]]/g, " ")
.replace(/\s+/g, " ")
.trim();
}

0 comments on commit c3618cd

Please sign in to comment.