fix: 修复codex的ua正则条件

This commit is contained in:
shaw
2025-11-23 22:51:56 +08:00
parent 53d2f1ff9b
commit 7706d3480d
2 changed files with 3 additions and 3 deletions

File diff suppressed because one or more lines are too long

View File

@@ -42,7 +42,7 @@ class CodexCliValidator {
// Codex CLI 的 UA 格式:
// - codex_vscode/0.35.0 (Windows 10.0.26100; x86_64) unknown (Cursor; 0.4.10)
// - codex_cli_rs/0.38.0 (Ubuntu 22.4.0; x86_64) WindowsTerminal
const codexCliPattern = /^(codex_vscode|codex_cli_rs)\/[\d\.]+/i
const codexCliPattern = /^(codex_vscode|codex_cli_rs)\/[\d.]+/i
const uaMatch = userAgent.match(codexCliPattern)
if (!uaMatch) {