|
| 1 | +import type { RegexEngine } from "./RegexEngine"; |
| 2 | + |
| 3 | +export const swift: RegexEngine = { |
| 4 | + description: "", |
| 5 | + enabled: true, |
| 6 | + help_label: "Regex Structure", |
| 7 | + help_url: "https://developer.apple.com/documentation/swift/regex", |
| 8 | + handle: "swift", |
| 9 | + level: "alpha", |
| 10 | + links: { |
| 11 | + RegexBuilder: "https://developer.apple.com/documentation/regexbuilder", |
| 12 | + }, |
| 13 | + logo_icon: "https://www.vectorlogo.zone/logos/swift/swift-icon.svg", |
| 14 | + logo_ar21: "https://www.vectorlogo.zone/logos/swift/swift-ar21.svg", |
| 15 | + nodeping_url: |
| 16 | + "https://nodeping.com/reports/checks/sd8rr8e8-0vw2-4cur-87tg-tnm9et6pc6w5", |
| 17 | + options: [ |
| 18 | + { code: "anchorsMatchLineEndings", description: "the start and end of input anchors (^ and $) also match against the start and end of a line." }, |
| 19 | + { code: "asciiOnlyCharacterClasses", description: "only ASCII characters when matching character classes." }, |
| 20 | + { code: "asciiOnlyDigits", description: "only ASCII characters as digits" }, |
| 21 | + { code: "asciiOnlyWhitespace", description: "only ASCII characters as space characters" }, |
| 22 | + { code: "asciiOnlyWordCharacters", description: "only ASCII characters as word characters" }, |
| 23 | + { code: "dotMatchesNewlines", description: "the “any” metacharacter (.) also matches against the start and end of a line." }, |
| 24 | + { code: "ignoresCase", description: "ignores case when matching" }, |
| 25 | + { code: "unicodeMatchingSemantics", description: "use Unicode scalar matching sematics" }, |
| 26 | + ], |
| 27 | + short_name: "Swift", |
| 28 | + source_url: "https://github.com/regexplanet/regexplanet-swift", |
| 29 | + status_url: "https://swift.gcr.regexplanet.com/status.json", |
| 30 | + test_url: "https://swift.gcr.regexplanet.com/test.json", |
| 31 | +}; |
0 commit comments