Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
origin-web-common
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Java-于龙
origin-web-common
Commits
0e8c4f82
Commit
0e8c4f82
authored
Oct 05, 2017
by
Robb Hamilton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Decoration links with a target with fa-external-link
parent
0bb95e29
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
4 deletions
+4
-4
origin-web-common-ui.js
dist/origin-web-common-ui.js
+1
-1
origin-web-common.js
dist/origin-web-common.js
+1
-1
origin-web-common.min.js
dist/origin-web-common.min.js
+1
-1
htmlService.js
src/ui-services/htmlService.js
+1
-1
No files found.
dist/origin-web-common-ui.js
View file @
0e8c4f82
...
...
@@ -2217,7 +2217,7 @@ angular.module("openshiftCommonUI")
// Replace any URLs with links.
return
text
.
replace
(
/https
?
:
\/\/[
A-Za-z0-9._%+-
]
+
\S
*
[^\s
.;,(){}<>"
\u
201d
\u
2019
]
/gm
,
function
(
str
)
{
if
(
target
)
{
return
"<a href=
\"
"
+
str
+
"
\"
target=
\"
"
+
target
+
"
\"
>"
+
str
+
"</a>"
;
return
"<a href=
\"
"
+
str
+
"
\"
target=
\"
"
+
target
+
"
\"
>"
+
str
+
"
<i class=
\"
fa fa-external-link
\"
aria-hidden=
\"
true
\"
></i>
</a>"
;
}
return
"<a href=
\"
"
+
str
+
"
\"
>"
+
str
+
"</a>"
;
...
...
dist/origin-web-common.js
View file @
0e8c4f82
...
...
@@ -5920,7 +5920,7 @@ angular.module("openshiftCommonUI")
// Replace any URLs with links.
return
text
.
replace
(
/https
?
:
\/\/[
A-Za-z0-9._%+-
]
+
\S
*
[^\s
.;,(){}<>"
\u
201d
\u
2019
]
/gm
,
function
(
str
)
{
if
(
target
)
{
return
"<a href=
\"
"
+
str
+
"
\"
target=
\"
"
+
target
+
"
\"
>"
+
str
+
"</a>"
;
return
"<a href=
\"
"
+
str
+
"
\"
target=
\"
"
+
target
+
"
\"
>"
+
str
+
"
<i class=
\"
fa fa-external-link
\"
aria-hidden=
\"
true
\"
></i>
</a>"
;
}
return
"<a href=
\"
"
+
str
+
"
\"
>"
+
str
+
"</a>"
;
...
...
dist/origin-web-common.min.js
View file @
0e8c4f82
...
...
@@ -2631,7 +2631,7 @@ return !0;
},
linkify
:
function
(
text
,
target
,
alreadyEscaped
)
{
return
text
?
(
alreadyEscaped
||
(
text
=
_
.
escape
(
text
)),
text
.
replace
(
/https
?
:
\/\/[
A-Za-z0-9._%+-
]
+
\S
*
[^\s
.;,(){}<>"
\u
201d
\u
2019
]
/gm
,
function
(
str
)
{
return
target
?
'<a href="'
+
str
+
'" target="'
+
target
+
'">'
+
str
+
"</a>"
:
'<a href="'
+
str
+
'">'
+
str
+
"</a>"
;
return
target
?
'<a href="'
+
str
+
'" target="'
+
target
+
'">'
+
str
+
' <i class="fa fa-external-link" aria-hidden="true"></i></a>'
:
'<a href="'
+
str
+
'">'
+
str
+
"</a>"
;
}))
:
text
;
}
};
...
...
src/ui-services/htmlService.js
View file @
0e8c4f82
...
...
@@ -102,7 +102,7 @@ angular.module("openshiftCommonUI")
// Replace any URLs with links.
return
text
.
replace
(
/https
?
:
\/\/[
A-Za-z0-9._%+-
]
+
\S
*
[^\s
.;,(){}<>"
\u
201d
\u
2019
]
/gm
,
function
(
str
)
{
if
(
target
)
{
return
"<a href=
\"
"
+
str
+
"
\"
target=
\"
"
+
target
+
"
\"
>"
+
str
+
"</a>"
;
return
"<a href=
\"
"
+
str
+
"
\"
target=
\"
"
+
target
+
"
\"
>"
+
str
+
"
<i class=
\"
fa fa-external-link
\"
aria-hidden=
\"
true
\"
></i>
</a>"
;
}
return
"<a href=
\"
"
+
str
+
"
\"
>"
+
str
+
"</a>"
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment