Skip to content

Commit

Permalink
Upgraded handbook url in config.json to use 2024. Also fixed incorrec…
Browse files Browse the repository at this point in the history
…t url links in the handbook.js command.
  • Loading branch information
abe123442 committed Nov 3, 2023
1 parent b9576b5 commit 3200761
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions commands/handbook.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ module.exports = {
value:
raw_requirements.replace(
/[A-Z]{4}[0-9]{4}/g,
`[$&](${handbookURL}$&)`,
`[$&](${handbookURL}/$&)`,
) || "None",
inline: true,
},
Expand All @@ -86,16 +86,16 @@ module.exports = {
{
name: "Equivalent Courses",
value:
Object.keys(equivalents)
.map((course) => `[${course}](${course})`)
Object.keys(exclusions)
.map((course) => `[${course}](${handbookURL}/${course})`)
.join(", ") || "None",
inline: true,
},
{
name: "Exclusion Courses",
value:
Object.keys(exclusions)
.map((course) => `[${course}](${handbookURL}${course})`)
.map((course) => `[${course}](${handbookURL}/${course})`)
.join(", ") || "None",
inline: true,
},
Expand Down
2 changes: 1 addition & 1 deletion config/handbook.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"apiURL": "https://circlesapi.csesoc.app",
"handbookURL": "https://www.handbook.unsw.edu.au/undergraduate/courses/2022/"
"handbookURL": "https://www.handbook.unsw.edu.au/undergraduate/courses/2024"
}

0 comments on commit 3200761

Please sign in to comment.