Codingcookie voodoo

 

Press Ctrl+Enter to quickly submit your post
Quick Reply  
 
 
  
 From:  CHYRON (DSMITHHFX)   
 To:  Peter (BOUGHTONP)     
41539.8 In reply to 41539.7 
I could have tried
/; foliosec=[a-z]+;/
but I was too lazy to find out if semi-colons need to be escaped (as seems likely), didn't want to start faffing around with regex voodoo, and was tickled by the one-caricature fix (apologies to bastard for that).

The likelihood of another cookie that includes "foliosec" as part of its name in this site is remote.

I'm considering whether using cookies makes the whole thing a bit too fragile, and will try url-based variables instead, which is how e.g. angularjs does it.

----
"Giant pig hot air balloon crashes after tangling with a cowboy-shaped one"
0/0
 Reply   Quote More 

 From:  Peter (BOUGHTONP)  
 To:  CHYRON (DSMITHHFX)      
41539.9 In reply to 41539.8 
Semi-colon doesn't need escaping. Only these do: ^.$*+?\|()[]{}

And it really isn't voodoo; it's a very easy language to learn.

0/0
 Reply   Quote More 

 From:  CHYRON (DSMITHHFX)   
 To:  ALL
41539.10 
Got the URL-based vars coded up without too much trouble (even learned the simple trick of rewriting the URL hash on the fly) and it seems considerably more responsive than the cookie vars. Probly make the patches live tomorrow.

----
"Giant pig hot air balloon crashes after tangling with a cowboy-shaped one"
0/0
 Reply   Quote More 

Reply to All    
 

1–10

Rate my interest:

Adjust text size : Smaller 10 Larger

Beehive Forum 1.5.2 |  FAQ |  Docs |  Support |  Donate! ©2002 - 2024 Project Beehive Forum

Forum Stats