lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Wed, Mar 5, 2014 at 4:54 PM, Pierre-Yves Gérardy <> wrote:
( about sanitize )..
> Why not?

Yeah, I'll do it if I deem lua is appropiate, but I'm doomed to forget
it periodically due to similarity with all the other pattern
implementations which behave differently.

>     if pattern:byte() == 94 -- anchored

Nice, I would have coded the check extracting a char, but I suppose
this is faster/easier in lua. I'll keep it for reference.

Francisco Olarte.