File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -48,15 +48,21 @@ function tryMatchEvent(
48
48
imported : CommunityConference ,
49
49
local : CommunityConference
50
50
) {
51
- if ( imported . title . toLocaleLowerCase ( ) === local . title . toLocaleLowerCase ( ) )
51
+ if (
52
+ imported . title . toLocaleLowerCase ( ) === local . title . toLocaleLowerCase ( ) &&
53
+ local . startDate === imported . startDate &&
54
+ local . endDate === imported . endDate
55
+ )
52
56
return true
53
57
54
58
if (
55
59
URL . canParse ( imported . href ) &&
56
60
URL . canParse ( local . href ) &&
57
61
new URL ( imported . href ) . hostname . replace ( "www." , "" ) ===
58
62
new URL ( local . href ) . hostname . replace ( "www." , "" ) &&
59
- new URL ( imported . href ) . pathname === new URL ( local . href ) . pathname
63
+ new URL ( imported . href ) . pathname === new URL ( local . href ) . pathname &&
64
+ local . startDate === imported . startDate &&
65
+ local . endDate === imported . endDate
60
66
) {
61
67
return true
62
68
}
You can’t perform that action at this time.
0 commit comments