mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
34aa1425b7
Closes #4206
8 lines
157 B
JavaScript
8 lines
157 B
JavaScript
module.exports = function() {
|
|
return {
|
|
name: 'toId',
|
|
process: function(str) {
|
|
return str.replace(/[^(a-z)(A-Z)(0-9)._-]/, '-');
|
|
}
|
|
};
|
|
}; |