From 487ae921fe0ab2ce51e876e8a4b1ffbba1a7edb2 Mon Sep 17 00:00:00 2001 From: Jason Robbins Date: Mon, 13 Jun 2022 17:01:55 +0000 Subject: [PATCH] Whitespace only changes from lint-fix. --- static/elements/chromedash-textarea.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/static/elements/chromedash-textarea.js b/static/elements/chromedash-textarea.js index bff7f96d..fa46c534 100644 --- a/static/elements/chromedash-textarea.js +++ b/static/elements/chromedash-textarea.js @@ -24,11 +24,11 @@ export class ChromedashTextarea extends SlTextarea { customCheckValidity(value) { if (this.multiple) { if (this.chromedash_split_pattern && - this.chromedash_single_pattern) { - const items = value.split(new RegExp(this.chromedash_split_pattern)); - const singleItemRegex = + this.chromedash_single_pattern) { + const items = value.split(new RegExp(this.chromedash_split_pattern)); + const singleItemRegex = new RegExp('^' + this.chromedash_single_pattern + '$', ''); - const valid = items.every((item) => { + const valid = items.every((item) => { if (!item) { // ignore empty items return true;