enisnazif commented on issue #43252:
URL: https://github.com/apache/airflow/issues/43252#issuecomment-2466222685

   If I understand you correctly, seems like this can be solved with:
   
   ```
   const isSanitised = (url: string | null) => {
       if (!url) {
         return false;
       }
       const urlRegex = /^(https?:)/i;
       return urlRegex.test(url);
     };
   ```
   
   i.e, if the URL is '' or null, set isSanitised to false 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to