erisu commented on issue #1291:
URL: https://github.com/apache/cordova-ios/issues/1291#issuecomment-1985696238

   IMO, the regular expression is not universal. It is more strict on what is 
allowed as a scheme.
   
   Looking at [O'Reilly - Extracting the Scheme from a 
URL](https://www.oreilly.com/library/view/regular-expressions-cookbook/9781449327453/ch08s08.html),
 they suggest to use the following regular expression for matching URL parts.
   
   ```
   ^([a-z][a-z0-9+\-.]*):
   ```
   
   Using the above regular expression with following test data:
   
   ```
   http://cordova.apache.org
   https://cordova.apache.org
   org.apache://cordova.foobar
   ```
   
   It would identfy that `http`, `https` and `org.apache` are schemes.
   
   In regards to Cordova, I am not sure why a stricter expression was applied.


-- 
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: issues-unsubscr...@cordova.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org

Reply via email to