---
title: matchBidirectionally
framework: webkit
role: symbol
role_heading: Type Property
path: webkit/wkwebextension/matchpattern/options/matchbidirectionally
---

# matchBidirectionally

Indicates that two patterns should be checked in either direction while matching.

## Declaration

```swift
static var matchBidirectionally: WKWebExtension.MatchPattern.Options { get }
```

## Discussion

Discussion For example, A matches B, or B matches A. Invalid for matching URLs.
