<!--
{
  "availability" : [
    "iOS: 18.4.0 -",
    "iPadOS: 18.4.0 -",
    "macCatalyst: 18.4.0 -",
    "macOS: 15.4.0 -",
    "visionOS: 2.4.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "WebKit",
  "identifier" : "/documentation/WebKit/WKWebExtension/MatchPattern/Options/matchBidirectionally",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "WebKit"
    ],
    "preciseIdentifier" : "c:@E@WKWebExtensionMatchPatternOptions@WKWebExtensionMatchPatternOptionsMatchBidirectionally"
  },
  "title" : "matchBidirectionally"
}
-->

# matchBidirectionally

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

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

## Discussion

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

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)