Skip to content

Commit

Permalink
Update facebook regex to match story URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
cookpete committed Feb 2, 2020
1 parent 57ae53d commit 94172f2
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 = /^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch)(\.php?|\/).+$/
const MATCH_URL = /^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/
const PLAYER_ID_PREFIX = 'facebook-player-'

export class Facebook extends Component {
Expand Down

0 comments on commit 94172f2

Please sign in to comment.