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

Update of /cvsroot/dqsd/dqsd/searches
In directory sc8-pr-cvs1:/tmp/cvs-serv662/searches

Modified Files:
        mac.xml tinyurl.xml 
Log Message:
* tinyurl - changed example so it wouldn't wrap
* mac - added help display if a question mark or no args are specified

Index: mac.xml
===================================================================
RCS file: /cvsroot/dqsd/dqsd/searches/mac.xml,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** mac.xml     30 Aug 2002 03:24:56 -0000      1.2
--- mac.xml     27 Nov 2002 23:59:55 -0000      1.3
***************
*** 5,14 ****
      <div class="helpboxDescLabels">Usage:</div>
      <table class="helpboxDescTable">
!               <tr><td>mac </td><td> - </td><td><i>&lt;MAC address&gt;</i></td></tr>
!         </table>
      <div class="helpboxDescLabels">Examples:</div>
      <table class="helpboxDescTable">
!               <tr><td>mac 0000.0a0a.0b0b</td></tr>
!        </table>
    </description>
    <category>Functions</category>
--- 5,14 ----
      <div class="helpboxDescLabels">Usage:</div>
      <table class="helpboxDescTable">
!       <tr><td>mac </td><td> - </td><td><i>&lt;MAC address&gt;</i></td></tr>
!       </table>
      <div class="helpboxDescLabels">Examples:</div>
      <table class="helpboxDescTable">
!       <tr><td>mac 0000.0a0a.0b0b</td></tr>
!      </table>
    </description>
    <category>Functions</category>
***************
*** 16,21 ****
    
    <script><![CDATA[
! function mac(t)
! {
      var result = null;
      var newaddr = null;
--- 16,24 ----
    
    <script><![CDATA[
!   function mac(t)
!   {
!     if( nullArgs("mac", t) )
!       return false;
! 
      var result = null;
      var newaddr = null;
***************
*** 23,63 ****
      var d = null; var e = null; var f = null;
      result = 
t.match(/([0-9a-f]?[0-9a-f])[:-]([0-9a-f]?[0-9a-f])[:-]([0-9a-f]?[0-9a-f])[:-]([0-9a-f]?[0-9a-f])[:-]([0-9a-f]?[0-9a-f])[:-]([0-9a-f]?[0-9a-f])/i);
!     if (result){
!          // modify and return here
!          a = RegExp.$1;
!          b = RegExp.$2;
!          c = RegExp.$3;
!          d = RegExp.$4;
!          e = RegExp.$5;
!          f = RegExp.$6;
!          if (a.length == 1) { a = "0" + a; }
!          if (b.length == 1) { b = "0" + b; }
!          if (c.length == 1) { c = "0" + c; }
!          if (d.length == 1) { d = "0" + d; }
!          if (e.length == 1) { e = "0" + e; }
!          if (f.length == 1) { f = "0" + f; }
  
!          
!          newaddr = a + b + "." + c + d + "." + e + f;
!          document.deff.q.value = newaddr;
!          document.deff.q.createTextRange().select();
!          return true;
!      }
!      result = 
t.match(/([0-9a-f][0-9a-f])([0-9a-f][0-9a-f])\.([0-9a-f][0-9a-f])([0-9a-f][0-9a-f])\.([0-9a-f][0-9a-f])([0-9a-f][0-9a-f])/i);
!      if (result){
!            // modify and return here
!          newaddr = RegExp.$1 + ":" + RegExp.$2 + ":" + RegExp.$3 + ":" + RegExp.$4 + 
":" + RegExp.$5 + ":" + RegExp.$6;
!          document.deff.q.value = newaddr;      
!          document.deff.q.createTextRange().select();
!          return true;
!      }
!      return false;
! }    
    ]]></script>
  
    <copyright>
!       Copyright (c) 2002 David Bau
!       Distributed under the terms of the
!       GNU Public License, Version 2 (http://www.gnu.org/copyleft/gpl.txt)
    </copyright>
  </search>
--- 26,67 ----
      var d = null; var e = null; var f = null;
      result = 
t.match(/([0-9a-f]?[0-9a-f])[:-]([0-9a-f]?[0-9a-f])[:-]([0-9a-f]?[0-9a-f])[:-]([0-9a-f]?[0-9a-f])[:-]([0-9a-f]?[0-9a-f])[:-]([0-9a-f]?[0-9a-f])/i);
!     if (result)
!     {
!       // modify and return here
!       a = RegExp.$1;
!       b = RegExp.$2;
!       c = RegExp.$3;
!       d = RegExp.$4;
!       e = RegExp.$5;
!       f = RegExp.$6;
!       if (a.length == 1) { a = "0" + a; }
!       if (b.length == 1) { b = "0" + b; }
!       if (c.length == 1) { c = "0" + c; }
!       if (d.length == 1) { d = "0" + d; }
!       if (e.length == 1) { e = "0" + e; }
!       if (f.length == 1) { f = "0" + f; }
  
!       newaddr = a + b + "." + c + d + "." + e + f;
!       document.deff.q.value = newaddr;
!       document.deff.q.createTextRange().select();
!       return true;
!     }
!     result = 
t.match(/([0-9a-f][0-9a-f])([0-9a-f][0-9a-f])\.([0-9a-f][0-9a-f])([0-9a-f][0-9a-f])\.([0-9a-f][0-9a-f])([0-9a-f][0-9a-f])/i);
!     if (result)
!     {
!       // modify and return here
!       newaddr = RegExp.$1 + ":" + RegExp.$2 + ":" + RegExp.$3 + ":" + RegExp.$4 + 
":" + RegExp.$5 + ":" + RegExp.$6;
!       document.deff.q.value = newaddr;      
!       document.deff.q.createTextRange().select();
!       return true;
!     }
!     return false;
!   }    
    ]]></script>
  
    <copyright>
!     Copyright (c) 2002 David Bau
!     Distributed under the terms of the
!     GNU Public License, Version 2 (http://www.gnu.org/copyleft/gpl.txt)
    </copyright>
  </search>

Index: tinyurl.xml
===================================================================
RCS file: /cvsroot/dqsd/dqsd/searches/tinyurl.xml,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** tinyurl.xml 18 Oct 2002 07:22:17 -0000      1.1
--- tinyurl.xml 27 Nov 2002 23:59:55 -0000      1.2
***************
*** 9,13 ****
      <div class="helpboxDescLabels">Examples:</div>
      <table class="helpboxDescTable">
!       <tr><td>tinyurl http://wwww.reallyreallyreallylongurltoannoyyou.com</td></tr>
      </table>
    </description>
--- 9,13 ----
      <div class="helpboxDescLabels">Examples:</div>
      <table class="helpboxDescTable">
!       <tr><td>tinyurl http://wwww.reallyreallylongurltoannoyyou.com</td></tr>
      </table>
    </description>




-------------------------------------------------------
This SF.net email is sponsored by: Get the new Palm Tungsten T 
handheld. Power & Color in a compact size! 
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
_______________________________________________
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