Skip to content

Commit

Permalink
Improve SoundCloud URL regex
Browse files Browse the repository at this point in the history
  • Loading branch information
cookpete committed Sep 14, 2015
1 parent ed0a3fd commit 3c4c5fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/players/SoundCloud.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const CLIENT_ID = 'e8b6f84fbcad14c301ca1355cae1dea2'
const SDK_URL = '//connect.soundcloud.com/sdk-2.0.0.js'
const SDK_GLOBAL = 'SC'
const RESOLVE_URL = '//api.soundcloud.com/resolve.json'
const MATCH_URL = /^https?:\/\/(soundcloud.com|snd.sc)\/(.*)$/
const MATCH_URL = /^https?:\/\/(soundcloud.com|snd.sc)\/([a-z0-9-]+\/[a-z0-9-]+)$/

export default class SoundCloud extends Base {
static propTypes = propTypes
Expand Down

0 comments on commit 3c4c5fa

Please sign in to comment.