-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add location to "Scheduled" lectures on course page (#1376)
* lecture halls linked * removed hardcoding * Added verification through regex * Regex fixed, no more undercase letters * Auxiliary file created for regex * Any removed for ESLint * Prettier errors fixed * Script no longer global * Auxilliary file works now * ESLint fixes * Reset web directory * Reset dependency lock * Checked again * Reset dependency lock again * These seemed to have changed too * Missed one * Files replaced with default ones * Something is wrong * Update home.gohtml --------- Co-authored-by: Karakoc <[email protected]>
- Loading branch information
Showing
4 changed files
with
11 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
export function isLectureHallValid(lectureHall: string): boolean { | ||
const regex = /^\d{4}\.[A-Z0-9]{2}\.[A-Z0-9]{3,4}$/; | ||
return regex.test(lectureHall); | ||
} |