MCPcopy Create free account
hub / github.com/ICBNetwork/web3-Wallet / formatForExactMatchGroup

Method formatForExactMatchGroup

e2e/utils/Utilities.js:17–19  ·  view source on GitHub ↗

* Formats an array of strings into a regex pattern string for exact matching. * This method takes an array of strings and returns a string formatted * for use in a regex pattern, designed to match any one of the provided strings exactly. * The resulting string is suitable for inclusion in a

(regexstrings)

Source from the content-addressed store, hash-verified

15 * formatForExactMatchGroup(['apple', 'banana', 'cherry']);
16 */
17 static formatForExactMatchGroup(regexstrings) {
18 return `\\("${regexstrings.join('","')}"\\)`;
19 }
20
21 /**
22 * A getter method that returns a formatted string of blacklisted URLs for exact matching in a regex pattern.

Callers 1

BlacklistURLsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected