* 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)
| 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. |