docs
docs copied to clipboard
Kratos configuration editor is broken
Preflight checklist
- [x] I could not find a solution in the existing issues, docs, nor discussions.
- [x] I agree to follow this project's Code of Conduct.
- [x] I have read and am following this repository's Contribution Guidelines.
- [x] I have joined the Ory Community Slack.
- [x] I am signed up to the Ory Security Patch Newsletter.
Ory Network Project
No response
Describe the bug
Configuration editor crashes whenever a change is made
Reproducing the bug
- Visit https://www.ory.sh/docs/kratos/reference/configuration-editor
- Make any change: e.g. click the plus under one of the "hooks" headings:
- Firefox displays this error:
- Chrome displays this error:
Relevant log output
Uncaught SyntaxError: Invalid regular expression: /^\[(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))]:([0-9]*)$/u: Lone quantifier brackets (at 36697.86a64acd.js:5:18005)
at new RegExp (<anonymous>)
at y (36697.86a64acd.js:5:18005)
at 36697.86a64acd.js:8:11026
at Object.code (36697.86a64acd.js:8:24705)
at N (36697.86a64acd.js:5:11384)
at 36697.86a64acd.js:5:6698
at Object.code (36697.86a64acd.js:2:160817)
at Object.block (36697.86a64acd.js:2:162737)
at _ (36697.86a64acd.js:5:6637)
at y (36697.86a64acd.js:5:5403)
Relevant configuration
Uncaught SyntaxError: Invalid regular expression: /^\[(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))]:([0-9]*)$/u: Lone quantifier brackets
at new RegExp (<anonymous>)
at y (36697.86a64acd.js:5:18005)
at 36697.86a64acd.js:8:11026
at Object.code (36697.86a64acd.js:8:24705)
at N (36697.86a64acd.js:5:11384)
at 36697.86a64acd.js:5:6698
at Object.code (36697.86a64acd.js:2:160817)
at Object.block (36697.86a64acd.js:2:162737)
at _ (36697.86a64acd.js:5:6637)
at y (36697.86a64acd.js:5:5403)
Version
N/A - docs
On which operating system are you observing this issue?
None
In which environment are you deploying?
None
Additional Context
No response