Smiley test

Testing smilies.

I think I got it fixed – the problem is that “/” is used as delimiter of regular expression, and if “/” is part of a smiley’s pattern, the whole thing is broken.

So I’m defining a delimiter variable in wp-includes/functions.php, in function smilies_init(), and use a character that can never be used (well, sort of) – I’m using “\001″ for now. Then replace all occurrences of “/” with $delimiter while composing $wp_smiliessearch, and that’s it.

Only open issue, which I don’t think it is related, is that two continuous #:-s will have only one shows up, still debugging …

:@) :@) =P~ =P~ =p~ =p~ >:P >:P >:p >:p
:-/ :-/ @-) @-) :-" :-” %-( %-( [-X [-X
[-x [-x :-@ :-@ :D :D :d :d :-D :-D
:-d :-d :| :| :-| :-| =)) =)) ;;) ;;)
I-) I-) i-) i-) :* :* :-* :-* :"> :">
:-& :-& :)] :)] :-SS :-SS :-ss :-ss :-sS :-sS
:-Ss :-Ss ~O) ~O) ~o) ~o) **== **== @};- @};-
:-< :-< >:) >:) [-O< [-O< [-o< [-o< b-( b-(
B-( B-( :^o :^o :^O :^O ;)) ;)) :-w :-w
:-W :-W :-S :-S :-s :-s :-j :-j :-J :-J
:-t :-t :-T :-T >:D< >:D< >:d< >:d< (%) (%)
O:) O:) o:) o:) O:-) O:-) o:-) o:-) L-) L-)
l-) l-) %%- %%- :)) :)) :-)) :-)) :O :O
:o :o :-O :-O :-o :-o o=> o=> O=> O=>
:) :) :-) :-) :-B :-B :-b :-b (~~) (~~)
^:)^ ^:)^ =; =; :-L :-L :-l :-l :> :>
:-> :-> B-) B-) b-) b-) :-c :-c :-C :-C
:-? :-? (*) (*) <):) <):) =(( =(( :-h :-h
:-H :-H >:/ >:/ =:) =:) :o3 :o3 :O3 :O3
8-> 8-> :-?? :-?? ~:> ~:> [-( [-( :O) :O)
:o) :o) /:) /:) #:-s #:-s #:-S #:-S 8-| 8-|
8-} 8-} :P :P :p :p :-P :-P :-p :-p
(:| (:| =D> =D> =d> =d> :(( :(( :-(( :-((
:( :( :-( :-( :)>- :)>- \:D/ \:D/ \:d/ \:d/
3:-O 3:-O 3:-o 3:-o >-) >-) 8-X 8-X 8-x 8-x
:-$ :-$ $-) $-) :(|) :(|) ;) ;) ;-) ;-)
<:-P <:-P <:-p <:-p :x :x :X :X :-x :-x
:-X :-X X( X( x( x( X-( X-( x-( x-(
o-> o-> O-> O-> *-:) *-:) ~X( ~X( ~x( ~x(
#-o #-o o-+ o-+ O-+ O-+        

No Comments

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a comment

WordPress Themes