From de9407533f526805bce193e9ed2503c7c3dc21b1 Mon Sep 17 00:00:00 2001 From: re-fort Date: Tue, 6 Jun 2017 15:25:32 +0900 Subject: [PATCH] :+1: Refactoring --- src/components/TreeItem.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/TreeItem.vue b/src/components/TreeItem.vue index 8f5c415..5391264 100644 --- a/src/components/TreeItem.vue +++ b/src/components/TreeItem.vue @@ -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