regex url validator?

Monte Goulding monte at appisle.net
Tue Oct 23 17:53:23 EDT 2018



> On 24 Oct 2018, at 8:40 am, Monte Goulding via use-livecode <use-livecode at lists.runrev.com> wrote:
> 
> Hmm… the syntax just describes valid syntax rather than how it behaves so I’m not sure if the change suggested above adds much.
> 
> The docs do state:
> 
> If a regex pattern is specified, the filterPattern evaluates to a regular expression.
> 
> Perhaps we just need a note stating that the pattern is presumed to be a wildcard if the pattern type is not explicitly specified via regex pattern or wildcard pattern.

Hmm… looking at Sean’s PR I see down further there is this:

If no filterPattern type is specified, the filterPattern is handled as a wildcard.

So all the info is there and interestingly I missed it myself. Sean’s PR does move the regex info I quoted above next to it which is good as currently one might ignore the rest once you hit the wildcard pattern description thinking it is no longer relevant to regex. I have suggested Sean also highlight that line by making it a block quoted note.

Cheers

Monte


More information about the use-livecode mailing list