path-to-regexp
path-to-regexp copied to clipboard
Add original path to error messages
Closes https://github.com/pillarjs/path-to-regexp/issues/336, https://github.com/pillarjs/path-to-regexp/pull/358, https://github.com/pillarjs/path-to-regexp/pull/356, and https://github.com/pillarjs/path-to-regexp/pull/354.
Adds originalPath to TokenData, which will be used (when available) for the error messages. It's already added to any methods that input a string.