Skip to content

Commit

Permalink
Merge pull request #105 from ConductionNL/fix/DIMOC-167/url-validation
Browse files Browse the repository at this point in the history
validate fix
  • Loading branch information
bbrands02 authored Aug 6, 2024
2 parents b4b47ca + 18219e7 commit c748415
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/modals/directory/AddListingModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -65,15 +65,7 @@ export default {
success: null,
error: false,
validateUrlError: null,
urlPattern: new RegExp(
'^(https?:\\/\\/)' // 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
+ '(\\?[;&a-z\\d%_.~+=-]*)?' // query string
+ '(\\#[-a-z\\d_]*)?$',
'i',
), // fragment locator
urlPattern: /^(https?:\/\/)?(([a-z\d]([a-z\d-]*[a-z\d])*)\.)+[a-z]{2,}$/i,
}
},
computed: {
Expand Down

0 comments on commit c748415

Please sign in to comment.