Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Kratos configuration editor is broken

未关闭
#2,252 2 条评论 0 个 reaction 已指派 1 人 在 GitHub 查看

@unatasha8 已经在做这个了。

开始于 2025年11月20日。

  • #876 来自 @lol768 —— 未关闭

评估

这个 Issue 还没有评估数据。

描述

bug
Preflight checklist
Ory Network Project

No response

Describe the bug

Configuration editor crashes whenever a change is made

Reproducing the bug
  1. Visit https://www.ory.sh/docs/kratos/reference/configuration-editor
  2. Make any change: e.g. click the plus under one of the "hooks" headings:
Image
  1. Firefox displays this error:
Image
  1. Chrome displays this error:
Image
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

主要语言
TypeScript
星标
161
派生
1.9k
PR 合并指标
30 天内没有已合并 PR

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

ory/docs 的其他 Issue

查看 ory/docs 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。