[bug] WorkRedact leaves international phone numbers with spaces unredacted
维护者通常 5 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 85/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- typescript
调研方向
从 LIFEOS/TOOLS/lib/WorkRedact.ts 和 redactWorkContent 函数入手,然后找到筛选器的测试。检查不带分隔符的国际号码如何匹配,并为带空格和连字符的示例添加测试用例,包括最少位数。完成标准是这些用例中的号码会被遮蔽,且现有的美国号码和紧凑格式国际号码用例仍然通过。
由索引模型根据 Issue 内容生成。
描述
What happened
WorkRedact leaves international phone numbers with spaces unredacted
Summary
LIFEOS/TOOLS/lib/WorkRedact.ts, redactWorkContent:
"+44 20 7946 0958" -> unchanged
"+49 30 12345678" -> unchanged
"+33 1 23 45 67 89" -> unchanged
The same numbers written without spaces (+<country code><digits>) are redacted, as are US shapes. Only those are caught. The common European ways of writing a number pass through to the work repo, which WorkSystem.md says the filter protects ("phone numbers ... are redacted before anything reaches the repo").
Suggested fix: accept spaces (and single hyphens) between digit groups after a +<country code>, with a minimum digit count, and add these cases to the filter's tests.
Details
- Kind: bug
- LifeOS version: 8.761.0
Filed with the LifeOS /feedback command. The reporter approved this exact text before it was sent; paths, secrets and personal details were stripped locally.
- 主要语言
- TypeScript
- 星标
- 20k
- 派生
- 2.5k
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
danielmiessler/LifeOS 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 78/100
danielmiessler/LifeOS#2985 ·
维护者通常 5 天内回复
-
MemoryTurnStart: the 300 ms budget skipped memory retrieval on 1 in 4 prompts on a Windows install未关闭
难度 2/5 1-3 小时 新手友好度 76/100
danielmiessler/LifeOS#2983 ·
维护者通常 5 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
danielmiessler/LifeOS#2977 ·
维护者通常 5 天内回复
-
难度 1/5 1 小时以内 新手友好度 84/100
danielmiessler/LifeOS#2967 ·
维护者通常 5 天内回复
-
难度 2/5 1-3 小时 新手友好度 82/100
danielmiessler/LifeOS#2966 ·
维护者通常 5 天内回复
查看 danielmiessler/LifeOS 的全部 Issue
相似的 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 65/100
OHDSI/Data2Evidence#3749 ·
维护者通常 4 天内回复
-
难度 2/5 1-3 小时 新手友好度 63/100
维护者通常 1 天内回复
-
bug severity:low triage:confirmed triage:in-progress
难度 2/5 1-3 小时 新手友好度 76/100
Cotal-AI/Cotal#10749 · 1 条评论 ·
维护者通常 1 天内回复
-
needs-atl
难度 1/5 1 小时以内 新手友好度 88/100
GoogleChrome/modern-web-guidance-src#3726 ·
维护者通常 1 天内回复
-
e2e-failure ready-to-code
难度 2/5 1-3 小时 新手友好度 78/100
redhat-developer/rhdh-plugin-export-overlays#4935 · 1 条评论 ·
维护者通常 1 天内回复