File tree Expand file tree Collapse file tree 3 files changed +1
-19
lines changed Expand file tree Collapse file tree 3 files changed +1
-19
lines changed Original file line number Diff line number Diff line change @@ -59,14 +59,6 @@ module Json = {
59
59
}
60
60
61
61
module Url = {
62
- type t = {
63
- hash : string ,
64
- host : string ,
65
- hostname : string ,
66
- href : string ,
67
- origin : string ,
68
- pathname : string ,
69
- }
70
62
let isAbsolute : string => bool = %raw (`
71
63
function (str ) {
72
64
var r = new RegExp (' ^(?:[a-z]+:)?//' , ' i' );
@@ -77,7 +69,6 @@ module Url = {
77
69
return false ;
78
70
}
79
71
` ) //', 'i');
80
- @new external make : string => t = "URL"
81
72
}
82
73
83
74
module Date = {
Original file line number Diff line number Diff line change 1
1
module Url : {
2
- type t = {
3
- hash : string ,
4
- host : string ,
5
- hostname : string ,
6
- href : string ,
7
- origin : string ,
8
- pathname : string ,
9
- }
10
2
let isAbsolute : string => bool
11
- let make : string => t
12
3
}
13
4
14
5
module Unsafe : {
Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ let transformItems = (items: DocSearch.transformItems) => {
68
68
69
69
items -> Belt .Array .keepMap (item => {
70
70
// Transform absolute URL into relative
71
- let url = try Util . Url .make (item .url )-> Some catch {
71
+ let url = try Webapi . URL .make (item .url )-> Some catch {
72
72
| Js .Exn .Error (obj ) =>
73
73
Js .Console .error2 (` Failed to parse URL ${item.url}` , obj )
74
74
None
You can’t perform that action at this time.
0 commit comments