Skip to content

Commit

Permalink
Relax facebook regex
Browse files Browse the repository at this point in the history
Not sure there’s any downside to attempting to play any Facebook URL with the FBSDK
Fixes #778
  • Loading branch information
cookpete committed Jan 23, 2020
1 parent 8c037ab commit 708e6aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/players/Facebook.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://connect.facebook.net/en_US/sdk.js'
const SDK_GLOBAL = 'FB'
const SDK_GLOBAL_READY = 'fbAsyncInit'
const MATCH_URL = /facebook\.com\/([^/?].+\/)?video(s|\.php)[/?].*$/
const MATCH_URL = /facebook\.com\/.+/
const PLAYER_ID_PREFIX = 'facebook-player-'

export class Facebook extends Component {
Expand Down

0 comments on commit 708e6aa

Please sign in to comment.