Skip to content

Commit cb63efc

Browse files
Copilotkiyarose
andauthored
refactor: rename normalize param t → title for clarity
Agent-Logs-Url: https://github.com/SillyLittleTech/Flean/sessions/03459e09-3dc2-45d6-bf14-d042a1a05ac8 Co-authored-by: kiyarose <75678535+kiyarose@users.noreply.github.com>
1 parent e9d1132 commit cb63efc

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

ios/extention/Resources/scripts/wiki-data-manager.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ export async function findMatchingWiki (urlString) {
166166
// If the article is empty (wiki root) or matches the origin's main page, redirect to
167167
// the destination's declared main page to honour cross-wiki naming differences.
168168
if (wiki.destination_main_page) {
169-
const normalize = t => (t || '').replace(/_/g, ' ').toLowerCase().trim()
169+
const normalize = title => (title || '').replace(/_/g, ' ').toLowerCase().trim()
170170
if (!article || normalize(article) === normalize(originEntry.origin_main_page || '')) {
171171
article = wiki.destination_main_page
172172
}

mos/Flean Extension/Resources/scripts/wiki-data-manager.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ export async function findMatchingWiki (urlString) {
166166
// If the article is empty (wiki root) or matches the origin's main page, redirect to
167167
// the destination's declared main page to honour cross-wiki naming differences.
168168
if (wiki.destination_main_page) {
169-
const normalize = t => (t || '').replace(/_/g, ' ').toLowerCase().trim()
169+
const normalize = title => (title || '').replace(/_/g, ' ').toLowerCase().trim()
170170
if (!article || normalize(article) === normalize(originEntry.origin_main_page || '')) {
171171
article = wiki.destination_main_page
172172
}

0 commit comments

Comments
 (0)