[wp-trac] [WordPress Trac] #6739: smilie regular experssion issue

WordPress Trac wp-trac at lists.automattic.com
Tue Apr 15 18:43:35 GMT 2008


#6739: smilie regular experssion issue
---------------------+------------------------------------------------------
 Reporter:  hailin   |       Owner:  anonymous
     Type:  defect   |      Status:  new      
 Priority:  normal   |   Milestone:  2.7      
Component:  General  |     Version:           
 Severity:  normal   |    Keywords:           
---------------------+------------------------------------------------------
 There is an issue with $wp_smiliessearch, it will miss some valid smilies.
 For example, for :) the pattern is:
 /(\s|^)\:\)(\s|$)/

 If the input is ":) :) :) :)"
 It will produce only two smilies.

 The fix is to change the pattern to:
 /(\s*|^)\:\)(\s|$)/

-- 
Ticket URL: <http://trac.wordpress.org/ticket/6739>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list