Skip to content

Commit 9fbd7e1

Browse files
mgoshornMitch Goshorn
andauthored
Updates regex used to validate tagnames to allow for tagnames that include namespace information (esp: svg tags) (#77)
Co-authored-by: Mitch Goshorn <mitch.goshorn@calmid.com>
1 parent 4059b2a commit 9fbd7e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/snapshot.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import {
1212
import { isElement, isShadowRoot } from './utils';
1313

1414
let _id = 1;
15-
const tagNameRegex = RegExp('[^a-z0-9-_]');
15+
const tagNameRegex = RegExp('[^a-z0-9-_:]');
1616

1717
export const IGNORED_NODE = -2;
1818

0 commit comments

Comments
 (0)