File tree Expand file tree Collapse file tree
ios/extention/Resources/scripts
mos/Flean Extension/Resources/scripts Expand file tree Collapse file tree Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments