Skip to content

fix(SmartRename): 修正默认替换规则的转义告警 - #375

Merged
InfinityPacer merged 1 commit into
mainfrom
codex/fix/smartrename-raw-regex
Aug 16, 2026
Merged

fix(SmartRename): 修正默认替换规则的转义告警#375
InfinityPacer merged 1 commit into
mainfrom
codex/fix/smartrename-raw-regex

Conversation

@InfinityPacer

Copy link
Copy Markdown
Owner

SmartRename 的默认词替换配置使用普通多行字符串,在新版 Python 中会因 \W\. 触发 SyntaxWarning

将默认配置改为原始字符串,保持传入正则引擎的运行时内容和现有替换行为不变;同步发布版本 1.5.1 及插件市场更新记录。

验证:

  • 严格模式编译通过(将 SyntaxWarning 视为错误)
  • AST 对比确认修改前后的默认规则字符串一致
  • 插件版本门禁通过
  • 插件仓全量测试通过:46 passed, 1 skipped1376 passed81 passed

@InfinityPacer
InfinityPacer merged commit e7098bf into main Aug 16, 2026
4 checks passed
@InfinityPacer
InfinityPacer deleted the codex/fix/smartrename-raw-regex branch August 16, 2026 15:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant