Skip to content

Commit

Permalink
Update Link.java regex acknowledgement
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremiahlzz authored Apr 14, 2024
1 parent c38bdf6 commit 9ed2f2c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/educonnect/model/student/Link.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
public class Link {

public static final String MESSAGE_CONSTRAINTS = "Please provide a valid website.";
// @@author jeremiahlzz
// Solution below inspired by https://stackoverflow.com/questions/42618872/regex-for-website-or-url-validation
// Regex groups match plan:
// 1) scheme ftp/http/https
// 2) ssh username
Expand Down

0 comments on commit 9ed2f2c

Please sign in to comment.