docs(manifest): note safe-regex validation for modelPatterns · openclaw/openclaw@e7c7ee4
SebTardif
·
2026-05-26
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -865,6 +865,11 @@ Fields:
|
865 | 865 | | `modelPrefixes` | `string[]` | Prefixes matched with `startsWith` against shorthand model ids. | |
866 | 866 | | `modelPatterns` | `string[]` | Regex sources matched against shorthand model ids after profile suffix removal. | |
867 | 867 | |
| 868 | +`modelPatterns` entries are compiled through `compileSafeRegex`, which rejects |
| 869 | +patterns containing nested repetition (for example `(a+)+$`). Patterns that fail |
| 870 | +the safety check are silently skipped, the same as syntactically invalid regex. |
| 871 | +Keep patterns simple and avoid nested quantifiers. |
| 872 | + |
868 | 873 | ## modelCatalog reference |
869 | 874 | |
870 | 875 | Use `modelCatalog` when OpenClaw should know provider model metadata before |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。