[wp-trac] [WordPress Trac] #24225: Improve regular expressions when matching attributes

WordPress Trac noreply at wordpress.org
Mon May 13 17:51:54 UTC 2013


#24225: Improve regular expressions when matching attributes
-------------------------+--------------------
 Reporter:  kovshenin    |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  3.6
Component:  General      |     Version:  trunk
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |
-------------------------+--------------------

Comment (by kovshenin):

 For the kind of data coming through `image_add_caption` negative lookahead
 isn't going to be a performance issue. If the alignment class is first in
 the list (which is usually the case) there won't be a lookahead at all
 because of the lazy quantifier. See [attachment:24225.4.diff]

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/24225#comment:8>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list