Skip to content

Commit

Permalink
fix test(meta_configuration.language)
Browse files Browse the repository at this point in the history
  • Loading branch information
kanasimi committed Oct 13, 2024
1 parent 870a46b commit d87558a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion replace/replace_tool.js
Original file line number Diff line number Diff line change
Expand Up @@ -1190,7 +1190,7 @@ async function prepare_operation(meta_configuration, move_configuration) {

// 中文條目也必須處理語言變體(繁簡轉換)情形。
//console.trace(meta_configuration.language);
if ((meta_configuration.language === 'zh' || meta_configuration.language === 'cmn') && !task_configuration.list_title
if (/^zh|cmn/.test(meta_configuration.language) && !task_configuration.list_title
// 確認是有必要轉換的,不是完全英文標題。
// /[\u4e00-\u9fa5]/: 匹配中文。
&& /[\u4e00-\u9fff]/.test(move_from_link)) {
Expand Down
3 changes: 3 additions & 0 deletions special page configuration.js
Original file line number Diff line number Diff line change
Expand Up @@ -1334,6 +1334,9 @@ function general_check_section_status(section/* , options */) {
delete topic_status.style_and_status;
delete section.adding_link;
}
// 機器人判定方法是當以{{tl|archive bottom}}結尾時,當作話題已結束。
// 換句話說,只要{{tl|archive bottom}}後面加任何文字或{{tl|不存檔}},
// 或分割主題(各自2級)就不會認定話題已結束。
if (topic_status.archived === 'archived') {
// 在結案之後還有東西。重新設定。
// console.log('在結案之後還有東西:');
Expand Down

0 comments on commit d87558a

Please sign in to comment.