File tree Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -30,23 +30,20 @@ let extractMetaTags = async (url: string) => {
30
30
let name =
31
31
meta
32
32
-> WebAPI .Element .getAttribute ("name" )
33
- -> Nullable .make
34
- -> Nullable .toOption
33
+ -> Null .make
35
34
let property =
36
35
meta
37
36
-> WebAPI .Element .getAttribute ("property" )
38
- -> Nullable .make
39
- -> Nullable .toOption
37
+ -> Null .make
40
38
let itemprop =
41
39
meta
42
40
-> WebAPI .Element .getAttribute ("itemprop" )
43
- -> Nullable .make
44
- -> Nullable .toOption
41
+ -> Null .make
45
42
46
43
let name = switch (name , property , itemprop ) {
47
- | (Some (name ), _ , _ ) => Some (name )
48
- | (_ , Some (property ), _ ) => Some (property )
49
- | (_ , _ , Some (itemprop )) => Some (itemprop )
44
+ | (Value (name ), _ , _ ) => Some (name )
45
+ | (_ , Value (property ), _ ) => Some (property )
46
+ | (_ , _ , Value (itemprop )) => Some (itemprop )
50
47
| _ => None
51
48
}
52
49
You can’t perform that action at this time.
0 commit comments