1
0
Fork 0
mirror of https://gitlab.com/bramw/baserow.git synced 2025-04-11 07:51:20 +00:00

Fix URL regex

This commit is contained in:
Hoang Do 2020-10-27 08:31:28 +00:00 committed by Bram Wiepjes
parent fee0aa28b9
commit 77bad3ba88
2 changed files with 2 additions and 1 deletions
changelog.md
web-frontend/modules/core/utils

View file

@ -8,6 +8,7 @@
* Added Email field.
* Added importer abstraction including a CSV and tabular paste importer.
* Added ability to navigate dropdown menus with arrow keys
* Fixed bug in the web-frontend URL validation where a '*' was invalidates.
## Released (2020-10-06)

View file

@ -40,7 +40,7 @@ export const isValidURL = (str) => {
'^((https?|ftps?):\\/\\/)?' + // protocol
'((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|' + // domain name
'((\\d{1,3}\\.){3}\\d{1,3}))' + // OR ip (v4) address
'(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*' + // port and path
'(\\:\\d+)?(\\/[-a-z\\d\\*%_.~+]*)*' + // port and path
'(\\?[;&a-z\\d%_.~+=-]*)?' + // query string
'(\\#[-a-z\\d_]*)?$',
'i'