[wp-trac] [WordPress Trac] #29427: Adjust oEmbed regex for Slideshare
WordPress Trac
noreply at wordpress.org
Fri Aug 29 14:21:28 UTC 2014
#29427: Adjust oEmbed regex for Slideshare
-------------------------------------+------------------------------
Reporter: Latz | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Embeds | Version: trunk
Severity: normal | Resolution:
Keywords: has-patch needs-testing | Focuses:
-------------------------------------+------------------------------
Changes (by johnbillion):
* keywords: => has-patch needs-testing
Comment:
There is indeed a language switcher at the bottom of slideshare.net which
changes the subdomain.
I think that regex needs to be tightened up a little. It a cursory glance,
it looks like it'll be greedy.
`#https?://([a-z]+\.)?slideshare\.net/.*#i` will probably suffice.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/29427#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list