diff --git a/js/app/directives/credentialfield.js b/js/app/directives/credentialfield.js
index c0a9490e..2922e992 100644
--- a/js/app/directives/credentialfield.js
+++ b/js/app/directives/credentialfield.js
@@ -55,7 +55,7 @@
'
' +
'',
link: function (scope) {
- var expression = /(https?:\/\/(?:www\.|(?!www))[^\s\.]+\.[^\s]{2,}|www\.[^\s]+\.[^\s]{2,})/gi;
+ var expression = /(https?:\/\/(?:www\.|(?!www))[^\s\.]+\.[^\s]{2,}|www\.[^\s]+\.[^\s]{2,})/i;
var regex = new RegExp(expression);
$translate(['toggle.visibility','copy.field', 'copy', 'copied']).then(function (translations) {
scope.tggltxt = translations['toggle.visibility'];
@@ -69,6 +69,7 @@
}
if (regex.test(scope.value)) {
scope.isLink = true;
+ scope.isPartialLink = false;
} else {
scope.isLink = false;
if(regex.test('https://'+scope.value)){