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

WordPress Trac noreply at wordpress.org
Fri Oct 3 10:20:49 UTC 2014


#24225: Improve regular expressions when matching attributes
-------------------------+------------------------
 Reporter:  kovshenin    |       Owner:  kovshenin
     Type:  enhancement  |      Status:  assigned
 Priority:  normal       |   Milestone:  4.1
Component:  General      |     Version:  3.6
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |     Focuses:
-------------------------+------------------------
Changes (by kovshenin):

 * milestone:  Future Release => 4.1


Comment:

 Found another occurrence, covered in [attachment:24225.5.diff].

 Also added [attachment:24225.6.diff] as an alternative to .4.diff. It
 matches non-quote characters unless a quote character is encountered. When
 one is encountered it uses negative lookahead to attempt to match a quote
 that is not the opening quote, so it should be pretty efficient. It's an
 extreme (read impossible) edge case and doesn't need to be committed, but
 good to have here for future reference.

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


More information about the wp-trac mailing list