MCPcopy
hub / github.com/webpack/webpack / resetRegexpState

Function resetRegexpState

lib/SourceMapDevToolPlugin.js:62–64  ·  lib/SourceMapDevToolPlugin.js::resetRegexpState
(regexp)

Source from the content-addressed store, hash-verified

60 * @returns {void}
61 */
62const resetRegexpState = (regexp) => {
63 regexp.lastIndex = -1;
64};
65
66/**
67 * Escapes regular expression metacharacters

Callers 1

applyMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected