Files
hudozka/client/filters/strip.js
T

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+$/, '');
};
});
};