Skip to content

Migrate to re2 #256

@PhilippMDoerner

Description

@PhilippMDoerner

The regex lib appears to have deprecated its re/RegexMatch/Regex API in favour of something more macro based (?).
The API is identical, but the types and symbol-names are different.

You notice this if you use regex-routes in prologue, as you now get these warnings:
Warning: use re2(static string) instead; re is deprecated [Deprecated]

Now they're re2/RegexMatch2/Regex2. I did 5 minutes of playing around and it seems this will require adjusting a few things. The few I could think of:

  • Adjust exports of core/basicregex.nim
  • Adjust addRoute proc in core/applications.nim
  • Adjust initRePath proc in core/route.nim

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions