Skip to content

Commit

Permalink
fix: allow ending digits for hostnames during validation
Browse files Browse the repository at this point in the history
  • Loading branch information
cadriel committed Dec 30, 2020
1 parent 2231807 commit 81c1c9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/widgets/SystemPrintersWidget.vue
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export default class SystemPrintersWidget extends Mixins(UtilsMixin) {
waits = Waits
urlRegex = new RegExp('^(https?:\\/\\/)' + // protocol
'((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.?)+[a-z]{2,}|' + // domain name
'((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.?)+[a-z\\d]{2,}|' + // domain name
'((\\d{1,3}\\.){3}\\d{1,3}))' + // ip (v4) address
'(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*' + // port
'(\\?[;&a-z\\d%_.~+=-]*)?' + // query string
Expand Down

0 comments on commit 81c1c9a

Please sign in to comment.