remove hashtags filter stability improvement

This commit is contained in:
tmshv committed 2016-03-26 01:43:29 +03:00
1 parent 03074088bf
commit 1759542c9c
1 file changed
+1 -1
+1 -1
View File
@@ -1,5 +1,5 @@
export default function(app) {
app.filter('removeHashtags', () => {
return string => string.replace(/(#[^\s]+)/g, '');
return string => string ? string.replace(/(#[^\s]+)/g, '') : string;
});
};