Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
John McEleney
/
casperjs
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
0efe5bf5
...
0efe5bf5223d334a7b18d8ad07faeebffee42fab
authored
2013-03-13 22:44:43 +0100
by
Nicolas Perriault
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fixed utils.cleanUrl() with relative urls
1 parent
5f514cb7
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
modules/utils.js
modules/utils.js
View file @
0efe5bf
...
...
@@ -68,7 +68,7 @@ exports.betterTypeOf = betterTypeOf;
*/
function
cleanUrl
(
url
)
{
"use strict"
;
if
(
url
.
indexOf
(
'/'
)
=
==
0
)
{
if
(
url
.
toLowerCase
().
indexOf
(
'http'
)
!
==
0
)
{
return
url
;
}
var
a
=
document
.
createElement
(
'a'
);
...
...
Please
register
or
sign in
to post a comment