Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

Commit 215c1ea

Browse files
author
vikasrohit
committed
AS#101110714058011, User cannot add custom URL to profile
-- Increased supported length to 15 from 3 for TLD
1 parent 959e0bf commit 215c1ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/directives/external-account/external-web-links.directive.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import angular from 'angular'
2525
$log = $log.getInstance('ExternalWebLinkCtrl')
2626
$scope.addingWebLink = false
2727
$scope.errorMessage = null
28-
$scope.urlRegEx = /^(http(s?):\/\/)?(www\.)?[a-zA-Z0-9\.\-\_]+(\.[a-zA-Z]{2,3})+(\/[a-zA-Z0-9\_\-\s\.\/\?\%\#\&\=]*)?$/
28+
$scope.urlRegEx = /^(http(s?):\/\/)?(www\.)?[a-zA-Z0-9\.\-\_]+(\.[a-zA-Z]{2,15})+(\/[a-zA-Z0-9\_\-\s\.\/\?\%\#\&\=]*)?$/
2929

3030
$scope.addWebLink = function() {
3131
$log.debug('URL: ' + $scope.url)

0 commit comments

Comments
 (0)