Skip to content

Negative lookahead and/or "ignore" flag? #56

Description

@joachimtingvold

Hi,

I'm trying to let MultiPass handle BasicAuth on all subdomains on a domain, except subdomains matching a certain regex.

^(?!.*(sub1|sub2|sub3))(.*\.foo\.bar|sub\.baz\.bar|sub\.bar\.foo)$

This should use the credentials for *.foo.bar, sub.baz.bar and sub.bar.foo, with the exception of subdomains of foo.bar that contains sub1, sub2 or sub3.

However, it does not seem to work. Not sure if the regex handles negative lookahead? Maybe MultiPass should have an option where you can add a rule with an "ignore" flag, and all sites matching that rule, will just be ignored by MultiPass?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions