Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

ngSanitize error lowercase is not a function #16918

Closed
hitendrajagtap opened this issue Nov 18, 2019 · 1 comment
Closed

ngSanitize error lowercase is not a function #16918

hitendrajagtap opened this issue Nov 18, 2019 · 1 comment

Comments

@hitendrajagtap
Copy link

AngularJS v1.7.8, ngSanitize v1.7.8

can you provide a reproduction of your problem, and place it in a new issue?

Originally posted by @petebacondarwin in #16567 (comment)

Error: [$injector:modulerr] Failed to instantiate module ngSanitize due to:
TypeError: lowercase is not a function
at arrayToMap (http://localhost:4444/Scripts/angular-sanitize.js:417:27)
at stringToMap (http://localhost:4444/Scripts/angular-sanitize.js:411:12)
at $SanitizeProvider (http://localhost:4444/Scripts/angular-sanitize.js:389:18)

function arrayToMap(items, lowercaseKeys) {
var obj = {}, i;
for (i = 0; i < items.length; i++) {
obj[lowercaseKeys ? lowercase(items[i]) : items[i]] = true;
}
return obj;
}

@hitendrajagtap
Copy link
Author

Seems like lowercase is deprecated 1daa4f2#diff-1d54c5f722aebc473dbe96f836ddf974

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant