[wp-trac] [WordPress Trac] #12690: Square brackets breaking links that contain square brackets

WordPress Trac noreply at wordpress.org
Tue Jul 29 07:06:08 UTC 2014


#12690: Square brackets breaking links that contain square brackets
-----------------------------------+-----------------------------
 Reporter:  iandstewart            |       Owner:  wonderboymusic
     Type:  defect (bug)           |      Status:  reopened
 Priority:  normal                 |   Milestone:  4.0
Component:  Formatting             |     Version:
 Severity:  normal                 |  Resolution:
 Keywords:  wptexturize has-patch  |     Focuses:
-----------------------------------+-----------------------------

Comment (by kovshenin):

 It looks like a single possessive quantifier for the shortcode group is
 sufficient to stop any backtracking after anything has been matched in
 that group. `[^\[\]<>]` doesn't really have to be greedy because it gets
 its greediness from the `+` outside of the group. See
 [attachment:12690.3.diff].

 We've been running this on WordPress.com for a few hours now and
 everything looks good so far.

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


More information about the wp-trac mailing list