mirror of
https://github.com/nextcloud/passman.git
synced 2025-10-06 19:45:54 +08:00
Merge branch 'issue588_try2' of https://github.com/OS3DrNick/passman into OS3DrNick-issue588_try2
This commit is contained in:
commit
44bb94b96d
1 changed files with 2 additions and 1 deletions
|
@ -55,7 +55,7 @@
|
|||
'<div class="cell" ngclipboard-success="onSuccess(e);" ngclipboard-error="onError(e);" ngclipboard data-clipboard-text="{{value}}"><i tooltip="copy_msg" class="fa fa-files-o"></i></div>' +
|
||||
'</div></span>',
|
||||
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)){
|
||||
|
|
Loading…
Add table
Reference in a new issue