Skip to content

Commit a41677a

Browse files
Portugal, Marcelomportuga
Portugal, Marcelo
authored andcommitted
fix(ui-grid-util.js): Replace angular.uppercase and .lowercase with String.toUpperCase and .toLowerC
This will allow us to support angular 1.7 when it becomes available. fix #6715
1 parent 85ad462 commit a41677a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/js/core/services/ui-grid-util.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -243,11 +243,11 @@ module.service('gridUtil', ['$log', '$window', '$document', '$http', '$templateC
243243
return columnName.replace(/_+/g, ' ')
244244
// Replace a completely all-capsed word with a first-letter-capitalized version
245245
.replace(/^[A-Z]+$/, function (match) {
246-
return angular.lowercase(angular.uppercase(match.charAt(0)) + match.slice(1));
246+
return match.toLowerCase();
247247
})
248248
// Capitalize the first letter of words
249249
.replace(/([\w\u00C0-\u017F]+)/g, function (match) {
250-
return angular.uppercase(match.charAt(0)) + match.slice(1);
250+
return match.charAt(0).toUpperCase() + match.slice(1);
251251
})
252252
// Put a space in between words that have partial capilizations (i.e. 'firstName' becomes 'First Name')
253253
// .replace(/([A-Z]|[A-Z]\w+)([A-Z])/g, "$1 $2");

0 commit comments

Comments
 (0)