Skip to content

Commit 2350b2c

Browse files
Remove <sup>2</sup> check and EXT specialities
1 parent b926d06 commit 2350b2c

File tree

3 files changed

+4
-14
lines changed

3 files changed

+4
-14
lines changed

scripts/check_modules.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,6 @@ def check_modules():
5151
"name": "Replace it with `²`.",
5252
"category": "Typo"
5353
},
54-
"<sup>2</sup>": {
55-
"name": "Replace it with `²`.",
56-
"category": "Typo"
57-
},
5854
'require("request")': {
5955
"name": "Replace it with built-in fetch.",
6056
"category": "Deprecated",
@@ -262,12 +258,6 @@ def check_modules():
262258
module["issues"].append(
263259
"Module is archived, but not marked as outdated in the official module list.")
264260

265-
if module["name"].startswith("EXT-"):
266-
# Modules with a name starting with "EXT-" are only for MMM-GoogleAssistant. So we make them heavier for the default sort order.
267-
module["defaultSortWeight"] += 3
268-
269-
module["description"] += "<br /><br />This module has been defined to work only with MMM-GoogleAssistant."
270-
271261
elif not module["name"].startswith("MMM-"):
272262
module["issues"].append(
273263
"Recommendation: Module name doesn't follow the recommended pattern (it doesn't start with `MMM-`). Consider renaming your module."

scripts/create_module_list.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ async function fetchMarkdownData () {
1919
}
2020

2121
function sortByNameIgnoringPrefix (a, b) {
22-
const nameA = a.name.replace("MMM-", "").replace("EXT-", "");
23-
const nameB = b.name.replace("MMM-", "").replace("EXT-", "");
22+
const nameA = a.name.replace("MMM-", "");
23+
const nameB = b.name.replace("MMM-", "");
2424
return nameA.localeCompare(nameB);
2525
}
2626

scripts/updateGitHubApiData.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ function sortModuleListByLastUpdate (previousData, moduleList) {
3737
}
3838

3939
function sortByNameIgnoringPrefix (a, b) {
40-
const nameA = a.name.replace("MMM-", "").replace("EXT-", "");
41-
const nameB = b.name.replace("MMM-", "").replace("EXT-", "");
40+
const nameA = a.name.replace("MMM-", "");
41+
const nameB = b.name.replace("MMM-", "");
4242
return nameA.localeCompare(nameB);
4343
}
4444

0 commit comments

Comments
 (0)