Skip to content

Regex parameters do not respect case insensitivity #1671

@MohammadYounes

Description

@MohammadYounes

I tried the $urlMatcherFactoryProvider config:

app.config(function ($urlMatcherFactoryProvider) {
  $urlMatcherFactoryProvider.caseInsensitive(true);
  $urlMatcherFactoryProvider.strictMode(false);
});

http://plnkr.co/edit/zdHlfVHBpnwDD3W5iUOW?p=preview

I traced this down to this line, not sure if this is the intended behavior or it should be like this:

type = $$UMFP.type(regexp || "string") || inherit($$UMFP.type("string"), { pattern: new RegExp(regexp, config.caseInsensitive ? 'i' : undefined) });

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions