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 cookpete/react-player#778
  • Loading branch information
webmiraclepro committed Jan 22, 2020
1 parent f57662a commit d9820d4
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 d9820d4

Please sign in to comment.