Browse files

Support more kinds of dashes

  • Loading branch information...
1 parent c4c5e70 commit e73dda953c1f50efd76442a5d6e4a15421fffd9b Eelco Lempsink committed Apr 1, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 static/luisterpaal.js
View
4 static/luisterpaal.js
@@ -156,8 +156,8 @@ function now() {
function unvariousArtist() {
if (track.a.match(/diverse artiesten|various artists/i) != null) {
- track.a = track.t.split(' - ')[0];
- track.t = track.t.split(' - ').slice(1).join(' - ');
+ track.a = track.t.split(/ - |/)[0];
+ track.t = track.t.split(/ - |/).slice(1).join(' - ');
}
}

0 comments on commit e73dda9

Please sign in to comment.