Pages: 1 [2]
  Print  
Author Topic: Rolling eye smiley is unresponsive  (Read 6214 times)
Uky
Shoot
*
Posts: 24


View Profile
« Reply #15 on: October 19, 2009, 04:38:53 PM »

I noticed that too! It happens on other forums as well, no idea why though...
Well... think about it. We have a smiley assigned to ":)" and a smiley assigned to "::)".
The first is a sub-string of the second. So if you have some code that scans through your post for these patterns and replaces the patterns with an image and it does so (in a somewhat simple manner such as checking them individually) with checking the shorter one first, any instance of the longer one gets mangled before it could get replaced properly.

Aside from making the code a bit more robust (for instance, doing something like how greedy operators in a regex engine work and always matching the longest possible pattern), the easy solution is to just give "rolling eye" a different text string.
Logged
AresRomanGod
Mossy
*
Posts: 1708


I am DEFINITELY not a mod. Flame when you see me.


View Profile
« Reply #16 on: October 19, 2009, 06:35:40 PM »

Which is why I tried :roll:. it's what we use in our other forums.
Logged


Be afraid.
Pages: 1 [2]
  Print  
 
Jump to: