Last active
          April 19, 2021 05:19 
        
      - 
      
- 
        Save gkweb/8cef04d58a74a702770f7480e20e55fd to your computer and use it in GitHub Desktop. 
    Pointhacks ultimate URL validation
  
        
  
    
      This file contains hidden or 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
    
  
  
    
  | const validateUrl = /(https?\:\/\/([\w\-]+)?.?pointhacks.com(.au)?)/gi | |
| // In use | |
| validateUrl.test('https://broken.com') | |
| validateUrl.test('https://working.pointhacks.com.au') | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment