Skip to content

Commit

Permalink
Merge pull request #358 from mvsaad/angular1.7-compatibility
Browse files Browse the repository at this point in the history
Replace usage of angular.lowercase with .toLowerCase()
  • Loading branch information
rubenv committed Jul 18, 2018
2 parents 27a11e4 + 5e6ca28 commit 3ee0433
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/directive.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,7 @@
* ```
*/
angular.module('gettext').directive('translate', function (gettextCatalog, $parse, $animate, $compile, $window, gettextUtil) {
var lowercase = angular.$$lowercase || angular.lowercase;
var msie = parseInt((/msie (\d+)/.exec(lowercase($window.navigator.userAgent)) || [])[1], 10);
var msie = parseInt((/msie (\d+)/i.exec($window.navigator.userAgent) || [])[1], 10);
var PARAMS_PREFIX = 'translateParams';

function getCtxAttr(key) {
Expand Down

0 comments on commit 3ee0433

Please sign in to comment.