Small regex fix for older browsers (#762)

This commit is contained in:
Cristi Constantin
2021-12-02 11:39:53 +00:00
committed by GitHub
parent f75679015d
commit ce9e97ffd2
2 changed files with 2 additions and 2 deletions

View File

@@ -16,7 +16,7 @@ import { isElement, isShadowRoot, maskInputValue } from './utils';
import { values } from 'puppeteer/DeviceDescriptors';
let _id = 1;
const tagNameRegex = RegExp('[^a-z0-9-_:]');
const tagNameRegex = new RegExp('[^a-z0-9-_:]');
export const IGNORED_NODE = -2;