nextgens at freenetproject.org wrote:
> Author: nextgens
> Date: 2007-08-13 20:23:07 +0000 (Mon, 13 Aug 2007)
> New Revision: 14663
> 
> Modified:
>    trunk/freenet/src/freenet/clients/http/filter/CSSTokenizerFilter.jflex
> Log:
> Maybe fix #982: CSS filter bugs ... review is welcome
> 
> Modified: 
> trunk/freenet/src/freenet/clients/http/filter/CSSTokenizerFilter.jflex
> ===================================================================
> --- trunk/freenet/src/freenet/clients/http/filter/CSSTokenizerFilter.jflex    
> 2007-08-13 19:19:30 UTC (rev 14662)
> +++ trunk/freenet/src/freenet/clients/http/filter/CSSTokenizerFilter.jflex    
> 2007-08-13 20:23:07 UTC (rev 14663)
> @@ -237,9 +237,9 @@
>  STRING2=\'(\\{NL}|\"|(\\\')|{NONASCII}|{ESCAPE}|[^\'])*\'
>  
>  IDENT={NMSTART}{NMCHAR}*
> -UNOFFICIAL_IDENT="-"{IDENT}
> +UNOFFICIAL_IDENT="-[^0-9]"{IDENT}
>  NAME={NMCHAR}+
> -NUM=[0-9]+|[0-9]*"."[0-9]+
> +NUM="-"([0-9]+|[0-9]*"."[0-9]+)
>  STRING={STRING1}|{STRING2}
>  
>  // Not used any more. Was used in url(). Keep for now. Matches up to the end 
> of a bracket.
> 
> _______________________________________________
> cvs mailing list
> cvs at freenetproject.org
> http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs
> 
now numbers have to start with a -?  I assume from all the regex syntax
that "-"? is allowed, and is your intent.

E.

Reply via email to