Skip to content

Commit

Permalink
revert "feat: doubleUnderscore takes Record<string, string> as fi…
Browse files Browse the repository at this point in the history
…rst item"

revert 2c61f07 for backward compatibility
  • Loading branch information
bhsd-harry committed Jul 27, 2024
1 parent c6a2154 commit 884f98a
Show file tree
Hide file tree
Showing 8 changed files with 112 additions and 122 deletions.
2 changes: 1 addition & 1 deletion bundle/bundle.min.js

Large diffs are not rendered by default.

20 changes: 5 additions & 15 deletions config/.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -93,22 +93,12 @@
"doubleUnderscore": {
"description": "behavior switches",
"type": "array",
"prefixItems": [
{
"description": "case-insensitive behavior switches",
"type": "object",
"additionalProperties": {
"type": "string"
}
},
{
"description": "case-sensitive behavior switches",
"type": "array",
"items": {
"type": "string"
}
"items": {
"type": "array",
"items": {
"type": "string"
}
],
},
"minItems": 2,
"maxItems": 2
},
Expand Down
56 changes: 28 additions & 28 deletions config/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -717,34 +717,34 @@
]
],
"doubleUnderscore": [
{
"forcetoc": "forcetoc",
"强显目录": "forcetoc",
"強制目錄": "forcetoc",
"nocc": "nocontentconvert",
"nocontentconvert": "nocontentconvert",
"不转换内容": "nocontentconvert",
"不轉換內容": "nocontentconvert",
"noeditsection": "noeditsection",
"无段落编辑": "noeditsection",
"无编辑段落": "noeditsection",
"無段落編輯": "noeditsection",
"nogallery": "nogallery",
"无图库": "nogallery",
"無圖庫": "nogallery",
"notc": "notitleconvert",
"notitleconvert": "notitleconvert",
"不转换标题": "notitleconvert",
"不轉換標題": "notitleconvert",
"notoc": "notoc",
"无目录": "notoc",
"無目錄": "notoc",
"toc": "toc",
"目录": "toc",
"目錄": "toc",
"archivedtalk": "archivedtalk",
"notalk": "notalk"
},
[
"forcetoc",
"强显目录",
"強制目錄",
"nocc",
"nocontentconvert",
"不转换内容",
"不轉換內容",
"noeditsection",
"无段落编辑",
"无编辑段落",
"無段落編輯",
"nogallery",
"无图库",
"無圖庫",
"notc",
"notitleconvert",
"不转换标题",
"不轉換標題",
"notoc",
"无目录",
"無目錄",
"toc",
"目录",
"目錄",
"archivedtalk",
"notalk"
],
[
"EXPECTUNUSEDCATEGORY",
"DISAMBIG",
Expand Down
26 changes: 13 additions & 13 deletions config/enwiki.json
Original file line number Diff line number Diff line change
Expand Up @@ -343,19 +343,19 @@
]
],
"doubleUnderscore": [
{
"forcetoc": "forcetoc",
"nocc": "nocontentconvert",
"nocontentconvert": "nocontentconvert",
"noeditsection": "noeditsection",
"nogallery": "nogallery",
"notc": "notitleconvert",
"notitleconvert": "notitleconvert",
"notoc": "notoc",
"toc": "toc",
"archivedtalk": "archivedtalk",
"notalk": "notalk"
},
[
"forcetoc",
"nocc",
"nocontentconvert",
"noeditsection",
"nogallery",
"notc",
"notitleconvert",
"notoc",
"toc",
"archivedtalk",
"notalk"
],
[
"EXPECTUNUSEDCATEGORY",
"DISAMBIG",
Expand Down
38 changes: 19 additions & 19 deletions config/llwiki.json
Original file line number Diff line number Diff line change
Expand Up @@ -483,25 +483,25 @@
]
],
"doubleUnderscore": [
{
"forcetoc": "forcetoc",
"强显目录": "forcetoc",
"nocc": "nocontentconvert",
"nocontentconvert": "nocontentconvert",
"不转换内容": "nocontentconvert",
"noeditsection": "noeditsection",
"无段落编辑": "noeditsection",
"无编辑段落": "noeditsection",
"nogallery": "nogallery",
"无图库": "nogallery",
"notc": "notitleconvert",
"notitleconvert": "notitleconvert",
"不转换标题": "notitleconvert",
"notoc": "notoc",
"无目录": "notoc",
"toc": "toc",
"目录": "toc"
},
[
"forcetoc",
"强显目录",
"nocc",
"nocontentconvert",
"不转换内容",
"noeditsection",
"无段落编辑",
"无编辑段落",
"nogallery",
"无图库",
"notc",
"notitleconvert",
"不转换标题",
"notoc",
"无目录",
"toc",
"目录"
],
[
"EXPECTUNUSEDCATEGORY",
"HIDDENCAT",
Expand Down
2 changes: 1 addition & 1 deletion config/minimum.json
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@
]
],
"doubleUnderscore": [
{},
[],
[]
],
"protocol": "bitcoin:|ftp://|ftps://|geo:|git://|gopher://|http://|https://|irc://|ircs://|magnet:|mailto:|matrix:|mms://|news:|nntp://|redis://|sftp://|sip:|sips:|sms:|ssh://|svn://|tel:|telnet://|urn:|worldwind://|xmpp:",
Expand Down
38 changes: 19 additions & 19 deletions config/moegirl.json
Original file line number Diff line number Diff line change
Expand Up @@ -575,25 +575,25 @@
]
],
"doubleUnderscore": [
{
"forcetoc": "forcetoc",
"强显目录": "forcetoc",
"nocc": "nocontentconvert",
"nocontentconvert": "nocontentconvert",
"不转换内容": "nocontentconvert",
"noeditsection": "noeditsection",
"无段落编辑": "noeditsection",
"无编辑段落": "noeditsection",
"nogallery": "nogallery",
"无图库": "nogallery",
"notc": "notitleconvert",
"notitleconvert": "notitleconvert",
"不转换标题": "notitleconvert",
"notoc": "notoc",
"无目录": "notoc",
"toc": "toc",
"目录": "toc"
},
[
"forcetoc",
"强显目录",
"nocc",
"nocontentconvert",
"不转换内容",
"noeditsection",
"无段落编辑",
"无编辑段落",
"nogallery",
"无图库",
"notc",
"notitleconvert",
"不转换标题",
"notoc",
"无目录",
"toc",
"目录"
],
[
"DISAMBIG",
"消除歧义",
Expand Down
52 changes: 26 additions & 26 deletions config/zhwiki.json
Original file line number Diff line number Diff line change
Expand Up @@ -659,32 +659,32 @@
]
],
"doubleUnderscore": [
{
"forcetoc": "forcetoc",
"强显目录": "forcetoc",
"強制目錄": "forcetoc",
"nocc": "nocontentconvert",
"nocontentconvert": "nocontentconvert",
"不转换内容": "nocontentconvert",
"不轉換內容": "nocontentconvert",
"noeditsection": "noeditsection",
"无段落编辑": "noeditsection",
"无编辑段落": "noeditsection",
"無段落編輯": "noeditsection",
"nogallery": "nogallery",
"无图库": "nogallery",
"無圖庫": "nogallery",
"notc": "notitleconvert",
"notitleconvert": "notitleconvert",
"不转换标题": "notitleconvert",
"不轉換標題": "notitleconvert",
"notoc": "notoc",
"无目录": "notoc",
"無目錄": "notoc",
"toc": "toc",
"目录": "toc",
"目錄": "toc"
},
[
"forcetoc",
"强显目录",
"強制目錄",
"nocc",
"nocontentconvert",
"不转换内容",
"不轉換內容",
"noeditsection",
"无段落编辑",
"无编辑段落",
"無段落編輯",
"nogallery",
"无图库",
"無圖庫",
"notc",
"notitleconvert",
"不转换标题",
"不轉換標題",
"notoc",
"无目录",
"無目錄",
"toc",
"目录",
"目錄"
],
[
"EXPECTUNUSEDCATEGORY",
"DISAMBIG",
Expand Down

0 comments on commit 884f98a

Please sign in to comment.