Closed anshulsahni closed 2 years ago
Hey @anshulsahni that sounds great! Would love to review a PR. Could you share the Regex you're trying to use? I'd like to play around with it to see if I can address the issues with JSON specifically.
So I wanted to run a search for a pattern including metacharacter \w
and while mentioning the regex pattern as a string, the JSON validator gives the error that \w is not a valid escape character in string. Eg: "urlRewriteSearch": "\w/docs\/"
else if I enter it as a n original RegEx pattern that's off course not valid format for JSON format
Also, will file a PR for this feature in the coming days
:tada: This issue has been resolved in version 4.1.0 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
Recently I was using config file and was trying to use
urlRewriteExperssion
options by specifying regex, JSON doesn't accept all the regex parameters in the text JSON invalidates the string having escape characters which are not known to it. This basically fails to import the config file from NodeJS.If there is support
linkinator.config.js
then the following benefits can be derived@JustinBeckwith Please share your thoughts on having this support, I'm ready to file the PR if you're ready to support this feature