Skip to content

Bug in Add Command: Checking of NUSMods link #1

Description

@nat-ong555

I think it is good that you have checked to see whether the link provided by users in the Add Command is from NUSMods, however I notice that some mods could be added to the Person even though the mod does not exist
Steps to reproduce:

  1. Open nusmates.jar
  2. Type in "add n/tea l/https://nusmods.com/timetable/sem-1/share?CS1234=TUT:05,LAB:E08" to the input bar

Result: Person "tea" is added to NUSMates, with the mod CS1234 tagged to it (attached in screenshot)
Screenshot 2025-04-04 162732.png

I noticed that CS1234 is not an existing mod in NUSMods, maybe you could include more checks to see if the input mods exist, with possibly an error message to let users know that the mod does not exist / is not available

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions