swiftlang / swift-experimental-string-processing

An early experimental general-purpose pattern matching engine for Swift.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Failed captures produced `.some(nil)`

hamishknight opened this issue · comments

For e.g:

      let r = Regex {
        Optionally {
          Optionally {
            Capture {
              "a"
            }
          }
        }
      }

matching against the empty input yields a capture of .some(nil). We ought to produce nil.