[wp-trac] [WordPress Trac] #29427: Adjust oEmbed regex for Slideshare

WordPress Trac noreply at wordpress.org
Fri Aug 29 15:27:10 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:
-------------------------------------+------------------------------

Comment (by Latz):

 > 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.

 Yeah, you're right, I tend to make regexes too greedy. I adjusted the
 patch.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/29427#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list