FIX: don't create featured link if title includes more than a url

This commit is contained in:
Neil Lalonde
2017-12-04 12:03:31 -05:00
parent b55b7c5356
commit cde42c3f69
2 changed files with 13 additions and 2 deletions
@@ -128,7 +128,7 @@ export default Ember.Component.extend({
@computed('composer.title', 'composer.titleLength')
isAbsoluteUrl(title, titleLength) {
return titleLength > 0 && /^(https?:)?\/\/[\w\.\-]+/i.test(title);
return titleLength > 0 && /^(https?:)?\/\/[\w\.\-]+$/i.test(title);
},
bodyIsDefault() {