Skip to content

Commit

Permalink
👍 Refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
re-fort committed Jun 6, 2017
1 parent f65ee70 commit de94075
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/TreeItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ export default {
return false
}
if (this.model.domain && url.match(new RegExp(this.model.domain, 'i')) === null) {
if (this.model.domain && !(new RegExp(this.model.domain, 'i')).test(url)) {
error.message = `${message.ERROR_NOT_MATCHED_DOMAIN}: ${this.model.domain}`
this.$emit('result', error)
return false
Expand Down

0 comments on commit de94075

Please sign in to comment.