View the DQSD CVS repository here:
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/dqsd/

Update of /cvsroot/dqsd/dqsd
In directory usw-pr-cvs1:/tmp/cvs-serv31700

Modified Files:
        clock.js 
Log Message:
Andrew Francis added basic character escaping to the date/time format string.  Allows 
use of literal characters like 'd' that would normally be interpreted as date/time 
formats.

Index: clock.js
===================================================================
RCS file: /cvsroot/dqsd/dqsd/clock.js,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** clock.js    5 Apr 2002 05:47:29 -0000       1.3
--- clock.js    23 Jul 2002 02:32:02 -0000      1.4
***************
*** 92,95 ****
--- 92,104 ----
      c = format.charAt(i_format);
      token = "";
+ 
+       // Basic character escaping
+     if ((format.charAt(i_format) == '\\') && (i_format < format.length - 1))
+     {
+       result = result + format.charAt(++i_format);
+       i_format++;
+         continue;
+     }
+ 
      while ((format.charAt(i_format) == c) && (i_format < format.length))
      {




-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
DQSD-CVS mailing list
https://lists.sourceforge.net/lists/listinfo/dqsd-cvs
DQSD CVS repository:
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/dqsd/

Reply via email to