From 57bb045cd1947feefe42783ec0ea53278b5ab0f7 Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Thu, 19 Nov 2020 23:26:07 -0500 Subject: [PATCH] remove redundant parens --- src/runtime/internal/ssr.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime/internal/ssr.ts b/src/runtime/internal/ssr.ts index 51e8fc6f4c..92e6a923b8 100644 --- a/src/runtime/internal/ssr.ts +++ b/src/runtime/internal/ssr.ts @@ -44,7 +44,7 @@ const escapes = { export function escape(html: string, attr: 0 | 1 = 0) { if (typeof html !== 'string') return html; - const pattern = (attr ? ATTR_REGEX : CONTENT_REGEX); + const pattern = attr ? ATTR_REGEX : CONTENT_REGEX; pattern.lastIndex = 0; let escaped = '';