Skip to content

Commit

Permalink
僅去除 ''', ''''',不可去除僅 italic。
Browse files Browse the repository at this point in the history
  • Loading branch information
kanasimi committed Jan 29, 2024
1 parent bca8b58 commit 5a9080e
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions routine/20200122.update_vital_articles.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ report level/class change

'use strict';

const { skip_edit } = require('../../../lib/wikiapi/Wikiapi.js');

// Load CeJS library and modules.
require('../wiki loader.js');

Expand All @@ -49,6 +47,8 @@ const do_PIQA = CeL.env.arg_hash?.do_PIQA
if (do_PIQA && wiki.site_name() === 'enwiki') {
// Only respect maxlag. 因為數量太多,只好增快速度。
CeL.wiki.query.default_edit_time_interval = 0;
// only for test
//delete CeL.wiki.query.default_maxlag;
}

// ----------------------------------------------
Expand Down Expand Up @@ -1354,12 +1354,13 @@ async function for_each_list_page(list_page_data) {
if (token.parent.type === 'bold') {
// assert: token.parent[1] === token
move_up();
// 注意: 僅去除 ''', ''''',不可去除僅 italic。
if (token.parent.type === 'italic') {
// assert: token.parent[1] === token
move_up();
}
//should be: _item[index] === token
}
if (token.parent.type === 'italic') {
// assert: token.parent[1] === token
move_up();
}
//should be: _item[index] === token

if (false && token.toString().includes('Russian Empire')) {
console.trace(_item);
Expand Down

0 comments on commit 5a9080e

Please sign in to comment.