remove hashtags filter stability improvement
This commit is contained in:
1 parent
03074088bf
commit
1759542c9c
1 file changed
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
export default function(app) {
|
export default function(app) {
|
||||||
app.filter('removeHashtags', () => {
|
app.filter('removeHashtags', () => {
|
||||||
return string => string.replace(/(#[^\s]+)/g, '');
|
return string => string ? string.replace(/(#[^\s]+)/g, '') : string;
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
Reference in new issue
Block a user