Skip to content

Commit

Permalink
忽略规则: 更新reIgnoreClass, 尝试修复代码上会翻译代码(#76)
Browse files Browse the repository at this point in the history
  • Loading branch information
maboloshi committed Nov 30, 2023
1 parent 03e5c1a commit 4be6dda
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions locals.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ I18N.conf = {
* 忽略区域的 class 正则
*
* 代码编辑器 内容 代码高亮 CodeMirror
* 代码编辑器 最小单元 cm-line
* 代码编辑器 最小单元 cm-line ͼ.*
* 代码高亮 blob-code
* 仓库名和用户名 repo-and-owner (已知出现在:应用安装授权页和设置页 选定仓库)
* 文件,目录位置栏 |js-path-segment|final-path
Expand All @@ -83,9 +83,9 @@ I18N.conf = {
* 搜索页 搜索结果 search-match
* 追溯 视图 代码 react-code-text
* tree 视图 文件名 react-directory-filename-column 提交信息 react-directory-commit-message
* 代码差异页面 pl-c1
* 代码差异页面 代码 pl-.*
*/
reIgnoreClass: /(cm-line|CodeMirror|blob-code|highlight-.*|repo-and-owner|js-path-segment|final-path|files js-navigation-container|js-comment-body|js-preview-body|comment-form-textarea|markdown-title|js-tree-finder-virtual-filter|js-navigation-open Link--primary|js-modifier-key|capped-list-label|blob-code blob-code-inner js-file-line|pl-token|Link--primary no-underline text-bold|markdown-body my-3|f4 my-3|commit-author|search-match|react-directory-filename-column|react-directory-commit-message|react-code-text|pl-c1)/,
reIgnoreClass: /(cm-line|ͼ.*|pl-.*|CodeMirror|blob-code|highlight-.*|repo-and-owner|js-path-segment|final-path|files js-navigation-container|js-comment-body|js-preview-body|comment-form-textarea|markdown-title|js-tree-finder-virtual-filter|js-navigation-open Link--primary|js-modifier-key|capped-list-label|blob-code blob-code-inner js-file-line|markdown-body my-3|f4 my-3|commit-author|search-match|react-directory-filename-column|react-directory-commit-message|react-code-text)/,

/**
* 忽略区域的 itemprop 属性正则
Expand Down

0 comments on commit 4be6dda

Please sign in to comment.