core
core copied to clipboard
Add :duct/regex reader tag
There are libs(e.g. https://github.com/r0man/ring-cors) that require regex patterns to be passed in, and it would be great if I can specify e.g. #"some-allowed-origin" directly in the config edn file.
This however did not work because it is not part of the eden spec.
This PR is the next thing I tried in my project and was pretty happy about it. Would it make sense to have this in duct/core?
You know that custom reader tags can be specified, right?
Yes and that is what I do right now and works great & happy with that, so it is totally up to you ;)