On Thu, Feb 16, 2012 at 10:13:59AM +0100, Tom Willemsen wrote: > Hey guys, > > I hope you don't mind me sharing my question.
I wouldn't have posted if I wasn't looking for critique.. > Wouldn't it be clearer/handier/better/idunno if the first argument is > always a regexp and the second is either a string which can (I assume) > use the first regex's groups (like `string.replace(/re(g)ex/string with > \1roup/)' or something), or a function which gets each matched group as > a parameter (an array probably) which it can check? Constraining the matcher to regexp-only is too limiting. The uri object passed to the transform function is already parsed into its components, so specific parts of an url can be easily matched against without having to deal with the complexities inherent in the limited language of regexps. -- John Foerch _______________________________________________ Conkeror mailing list [email protected] https://www.mozdev.org/mailman/listinfo/conkeror
