14 lines
270 B
JavaScript
14 lines
270 B
JavaScript
/**
|
|
* Created by tmshv on 21/11/14.
|
|
*/
|
|
|
|
module.exports = function(app) {
|
|
app.filter("strip", function () {
|
|
return function(string) {
|
|
return string
|
|
.replace(/^\s+/, '')
|
|
.replace(/\s+$/, '');
|
|
};
|
|
});
|
|
};
|