Skip to content

Commit

Permalink
Replace spaces with underscores in main page name
Browse files Browse the repository at this point in the history
  • Loading branch information
TripleCamera authored and kelson42 committed Jul 13, 2024
1 parent bdafaab commit 42d6569
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/MediaWiki.ts
Original file line number Diff line number Diff line change
Expand Up @@ -417,8 +417,7 @@ class MediaWiki {
throw new Error(`Mediawiki version ${mwVersion} not supported should be >=${mwMinimalVersion}`)
}

// Base will contain the default encoded article id for the wiki.
const mainPage = entries.mainpage
const mainPage = entries.mainpage.replace(/ /g, '_')
const siteName = entries.sitename

// Gather languages codes (en remove the 'dialect' part)
Expand Down

0 comments on commit 42d6569

Please sign in to comment.