From 9fbd7e1661c4654c4b14948b5802fb498caa8f2d Mon Sep 17 00:00:00 2001 From: mgoshorn Date: Thu, 27 May 2021 20:17:09 +0900 Subject: [PATCH] Updates regex used to validate tagnames to allow for tagnames that include namespace information (esp: svg tags) (#77) Co-authored-by: Mitch Goshorn --- src/snapshot.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/snapshot.ts b/src/snapshot.ts index 532fe16a..065feb1e 100644 --- a/src/snapshot.ts +++ b/src/snapshot.ts @@ -12,7 +12,7 @@ import { import { isElement, isShadowRoot } from './utils'; let _id = 1; -const tagNameRegex = RegExp('[^a-z0-9-_]'); +const tagNameRegex = RegExp('[^a-z0-9-_:]'); export const IGNORED_NODE = -2;