From 130245e09ca7aadb46eb0db5c82e11d2fb93cf95 Mon Sep 17 00:00:00 2001 From: taoqf Date: Wed, 8 Apr 2020 14:34:01 +0800 Subject: [PATCH] format --- src/nodes/html.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/nodes/html.ts b/src/nodes/html.ts index 190f323..2f796bb 100644 --- a/src/nodes/html.ts +++ b/src/nodes/html.ts @@ -628,8 +628,9 @@ export function parse(data: string, options = {} as Options) { } continue; } - if (options.lowerCaseTagName) + if (options.lowerCaseTagName) { match[2] = match[2].toLowerCase(); + } if (!match[1]) { // not or
etc. while (true) { if (currentParent.tagName === match[2]) {