Class: CompiledPatterns

(private) patterns~CompiledPatterns(caseSensitiveopt, nullable, caseInsensitiveopt, nullable)

A CompiledPatterns object represents the compiled version of multiple URL request patterns. It is returned by compilePatterns().

Constructor

(private) new CompiledPatterns(caseSensitiveopt, nullable, caseInsensitiveopt, nullable)

Creates an object with the given regular expressions for case-sensitive and case-insensitive matching respectively.

Parameters:
Name Type Attributes Description
caseSensitive RegExp <optional>
<nullable>
caseInsensitive RegExp <optional>
<nullable>
Source:

Methods

test(request) → {boolean}

Tests whether the given URL request matches the patterns used to create this object.

Parameters:
Name Type Description
request module:url.URLRequest
Source:
Returns:
Type
boolean