Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
web-apps
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boris Kocherov
web-apps
Commits
3abcf98b
Commit
3abcf98b
authored
Jan 25, 2017
by
Julia Radzhabova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix bug 33822.
parent
8ebe0ed8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
apps/common/main/lib/util/utils.js
apps/common/main/lib/util/utils.js
+2
-2
No files found.
apps/common/main/lib/util/utils.js
View file @
3abcf98b
...
...
@@ -86,8 +86,8 @@ Common.Utils = _.extend(new(function() {
isSecure
=
/^https/i
.
test
(
window
.
location
.
protocol
),
emailRe
=
/^
(
mailto:
)?([
a-z0-9'
\.
_-
]
+@
[
a-z0-9
\.
-
]
+
\.[
a-z0-9
]{2,4})([
a-яё0-9
\.
_%+-=
\?
:&
]
*
)
/i
,
ipRe
=
/^
(((
https
?)
|
(
ftps
?))
:
\/\/)?([\-\w
а-яё
]
*:
?[\-\w
а-яё
]
*@
)?(((
1
[
0-9
]{2}
|2
[
0-4
][
0-9
]
|25
[
0-5
]
|
[
1-9
][
0-9
]
|
[
0-9
])\.){3}(
1
[
0-9
]{2}
|2
[
0-4
][
0-9
]
|25
[
0-5
]
|
[
1-9
][
0-9
]
|
[
0-9
]))(
:
\d
+
)?(\/[
%
\-\w
а-яё
]
*
(\.[\w
а-яё
]{2,})?(([\w
а-яё
\-\.\?\\\/
+@&#;:`~=%!,
\(\)]
*
)(\.[\w
а-яё
]{2,})?)
*
)
*
\/?
/i
,
hostnameRe
=
/^
(((
https
?)
|
(
ftps
?))
:
\/\/)?([\-\w
а-яё
]
*:
?[\-\w
а-яё
]
*@
)?(([\-\w
а-яё
]
+
\.)
+
[\w
а-яё
\-]{2,}(
:
\d
+
)?(\/[
%
\-\w
а-яё
]
*
(\.[\w
а-яё
]{2,})?(([\w
а-яё
\-\.\?\\\/
+@&#;:`~=%!,
\(\)]
*
)(\.[\w
а-яё
]{2,})?)
*
)
*
\/?)
/i
,
localRe
=
/^
(((
https
?)
|
(
ftps
?))
:
\/\/)([\-\w
а-яё
]
*:
?[\-\w
а-яё
]
*@
)?(([\-\w
а-яё
]
+
)(
:
\d
+
)?(\/[
%
\-\w
а-яё
]
*
(\.[\w
а-яё
]{2,})?(([\w
а-яё
\-\.\?\\\/
+@&#;:`~=%!,
\(\)]
*
)(\.[\w
а-яё
]{2,})?)
*
)
*
\/?)
/i
,
hostnameRe
=
/^
(((
https
?)
|
(
ftps
?))
:
\/\/)?([\-\w
а-яё
]
*:
?[\-\w
а-яё
]
*@
)?(([\-\w
а-яё
]
+
\.)
+
[\w
а-яё
\-]{2,}(
:
\d
+
)?(\/[
%
\-\w
а-яё
]
*
(\.[\w
а-яё
]{2,})?(([\w
а-яё
\-\.\?\\\/
+@&#;:`
'
~=%!,
\(\)]
*
)(\.[\w
а-яё
]{2,})?)
*
)
*
\/?)
/i
,
localRe
=
/^
(((
https
?)
|
(
ftps
?))
:
\/\/)([\-\w
а-яё
]
*:
?[\-\w
а-яё
]
*@
)?(([\-\w
а-яё
]
+
)(
:
\d
+
)?(\/[
%
\-\w
а-яё
]
*
(\.[\w
а-яё
]{2,})?(([\w
а-яё
\-\.\?\\\/
+@&#;:`
'
~=%!,
\(\)]
*
)(\.[\w
а-яё
]{2,})?)
*
)
*
\/?)
/i
,
emailStrongRe
=
/
(
mailto:
)?([
a-z0-9'
\.
_-
]
+@
[
a-z0-9
\.
-
]
+
\.[
a-z0-9
]{2,4})([
a-яё0-9
\.
_%+-=
\?
:&
]
*
)
/ig
,
ipStrongRe
=
/
(((
https
?)
|
(
ftps
?))
:
\/\/([\-\w
а-яё
]
*:
?[\-\w
а-яё
]
*@
)?)(((
1
[
0-9
]{2}
|2
[
0-4
][
0-9
]
|25
[
0-5
]
|
[
1-9
][
0-9
]
|
[
0-9
])\.){3}(
1
[
0-9
]{2}
|2
[
0-4
][
0-9
]
|25
[
0-5
]
|
[
1-9
][
0-9
]
|
[
0-9
]))(
:
\d
+
)?(\/[
%
\-\w
а-яё
]
*
(\.[\w
а-яё
]{2,})?(([\w
а-яё
\-\.\?\\\/
+@&#;:`~=%!,
\(\)]
*
)(\.[\w
а-яё
]{2,})?)
*
)
*
\/?
/ig
,
hostnameStrongRe
=
/
((((
https
?)
|
(
ftps
?))
:
\/\/([\-\w
а-яё
]
*:
?[\-\w
а-яё
]
*@
)?)
|
(([\-\w
а-яё
]
*:
?[\-\w
а-яё
]
*@
)?
www
\.))((([\-\w
а-яё
]
+
\.)
+
[\w
а-яё
\-]{2,}
|
([\-\w
а-яё
]
+
))(
:
\d
+
)?(\/[
%
\-\w
а-яё
]
*
(\.[\w
а-яё
]{2,})?(([\w
а-яё
\-\.\?\\\/
+@&#;:`~=%!,
\(\)]
*
)(\.[\w
а-яё
]{2,})?)
*
)
*
\/?)
/ig
,
...
...
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