Skip to content

Commit

Permalink
fix unknown static regex
Browse files Browse the repository at this point in the history
  • Loading branch information
kodlian committed May 12, 2021
1 parent f54bd19 commit 9a88e14
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
14 changes: 7 additions & 7 deletions Sources/SwiftRegexDSL/Character Class.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public struct Control: Regex {
}

/// Match any character with the Unicode General Category of Nd (Number, Decimal Digit.)
public struct Digit: StaticRegex {
public struct Digit: Regex {
public init() { }

public var body: Regex {
Expand All @@ -31,7 +31,7 @@ public struct Digit: StaticRegex {
}

/// Match any character that is not a decimal digit.
public struct NotDigit: StaticRegex {
public struct NotDigit: Regex {
public init() { }

public var body: Regex {
Expand All @@ -40,7 +40,7 @@ public struct NotDigit: StaticRegex {
}

/// Match a word character. Word characters are [\p{Ll}\p{Lu}\p{Lt}\p{Lo}\p{Nd}].
public struct Word: StaticRegex {
public struct Word: Regex {
public init() { }

public var body: Regex {
Expand All @@ -49,7 +49,7 @@ public struct Word: StaticRegex {
}

/// Match a non-word character.
public struct NotWord: StaticRegex {
public struct NotWord: Regex {
public init() { }

public var body: Regex {
Expand All @@ -58,7 +58,7 @@ public struct NotWord: StaticRegex {
}

/// Match a white space character. White space is defined as [\t\n\f\r\p{Z}].
public struct WhiteSpace: StaticRegex {
public struct WhiteSpace: Regex {
public init() { }

public var body: Regex {
Expand All @@ -67,7 +67,7 @@ public struct WhiteSpace: StaticRegex {
}

/// Match a non-white space character.
public struct NotWhiteSpace: StaticRegex {
public struct NotWhiteSpace: Regex {
public init() { }

public var body: Regex {
Expand All @@ -76,7 +76,7 @@ public struct NotWhiteSpace: StaticRegex {
}

/// Match any character.
public struct AnyCharacter: StaticRegex {
public struct AnyCharacter: Regex {
public init() { }

public var body: Regex {
Expand Down
12 changes: 6 additions & 6 deletions Sources/SwiftRegexDSL/Special Characters.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import Foundation

/// Match a BELL, \u0007.
public struct Bell: StaticRegex {
public struct Bell: Regex {
public init() { }

public var body: Regex {
Expand All @@ -17,7 +17,7 @@ public struct Bell: StaticRegex {
}

/// Match an ESCAPE, \u001B.
public struct Escape: StaticRegex {
public struct Escape: Regex {
public init() { }

public var body: Regex {
Expand All @@ -26,7 +26,7 @@ public struct Escape: StaticRegex {
}

/// Match a FORM FEED, \u000C.
public struct Form: StaticRegex {
public struct Form: Regex {
public init() { }

public var body: Regex {
Expand All @@ -35,7 +35,7 @@ public struct Form: StaticRegex {
}

/// Match a LINE FEED, \u000A.
public struct Line: StaticRegex {
public struct Line: Regex {
public init() { }

public var body: Regex {
Expand All @@ -44,7 +44,7 @@ public struct Line: StaticRegex {
}

/// Match a CARRIAGE RETURN, \u000D.
public struct CarriageReturn: StaticRegex {
public struct CarriageReturn: Regex {
public init() { }

public var body: Regex {
Expand All @@ -53,7 +53,7 @@ public struct CarriageReturn: StaticRegex {
}

/// Match a HORIZONTAL TABULATION, \u0009.
public struct Tab: StaticRegex {
public struct Tab: Regex {
public init() { }

public var body: Regex {
Expand Down

0 comments on commit 9a88e14

Please sign in to comment.