Skip to content

Commit

Permalink
Escape dots in URL patterns
Browse files Browse the repository at this point in the history
  • Loading branch information
cookpete committed Mar 15, 2018
1 parent 3b92c4a commit 129a179
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/players/DailyMotion.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import createSinglePlayer from '../singlePlayer'
const SDK_URL = 'https://api.dmcdn.net/all.js'
const SDK_GLOBAL = 'DM'
const SDK_GLOBAL_READY = 'dmAsyncInit'
const MATCH_URL = /dailymotion.com\/(video|hub)\/([^_]+)[^#]*(#video=([^_&]+))?/
const MATCH_URL = /dailymotion\.com\/(video|hub)\/([^_]+)[^#]*(#video=([^_&]+))?/

export class DailyMotion extends Component {
static displayName = 'DailyMotion'
Expand Down
2 changes: 1 addition & 1 deletion src/players/SoundCloud.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import createSinglePlayer from '../singlePlayer'

const SDK_URL = 'https://w.soundcloud.com/player/api.js'
const SDK_GLOBAL = 'SC'
const MATCH_URL = /(soundcloud.com|snd.sc)\/.+$/
const MATCH_URL = /(soundcloud\.com|snd\.sc)\/.+$/

export class SoundCloud extends Component {
static displayName = 'SoundCloud'
Expand Down
2 changes: 1 addition & 1 deletion src/players/Streamable.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import createSinglePlayer from '../singlePlayer'

const SDK_URL = '//cdn.embed.ly/player-0.1.0.min.js'
const SDK_GLOBAL = 'playerjs'
const MATCH_URL = /streamable.com\/([a-z0-9]+)$/
const MATCH_URL = /streamable\.com\/([a-z0-9]+)$/

export class Streamable extends Component {
static displayName = 'Streamable'
Expand Down
2 changes: 1 addition & 1 deletion src/players/Vimeo.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import createSinglePlayer from '../singlePlayer'

const SDK_URL = 'https://player.vimeo.com/api/player.js'
const SDK_GLOBAL = 'Vimeo'
const MATCH_URL = /vimeo.com\//
const MATCH_URL = /vimeo\.com\//

export class Vimeo extends Component {
static displayName = 'Vimeo'
Expand Down
2 changes: 1 addition & 1 deletion src/players/Wistia.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import createSinglePlayer from '../singlePlayer'

const SDK_URL = '//fast.wistia.com/assets/external/E-v1.js'
const SDK_GLOBAL = 'Wistia'
const MATCH_URL = /(?:wistia.com|wi.st)\/(?:medias|embed)\/(.*)$/
const MATCH_URL = /(?:wistia\.com|wi\.st)\/(?:medias|embed)\/(.*)$/

export class Wistia extends Component {
static displayName = 'Wistia'
Expand Down

0 comments on commit 129a179

Please sign in to comment.