Skip to content

Commit 7176ca5

Browse files
committed
Merge branch 'feature/support-gmail-oauth' into dev
2 parents eca85a3 + 4a81adf commit 7176ca5

2 files changed

Lines changed: 19 additions & 2 deletions

File tree

app/Services/Matchmaking/ProfileAvatarResolver.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,16 @@ private function scoreMatch(string $candidate, string $indexKey, bool $isOrganis
179179
return 100;
180180
}
181181

182+
$candidateCompact = $this->compact($candidate);
183+
$indexCompact = $this->compact($indexKey);
184+
if (
185+
$candidateCompact !== '' &&
186+
$indexCompact !== '' &&
187+
(str_contains($candidateCompact, $indexCompact) || str_contains($indexCompact, $candidateCompact))
188+
) {
189+
return 65;
190+
}
191+
182192
$candidateTokens = array_values(array_filter(explode('-', $candidate)));
183193
$indexTokens = array_values(array_filter(explode('-', $indexKey)));
184194
$tokenOverlap = count(array_intersect($candidateTokens, $indexTokens));
@@ -204,5 +214,10 @@ private function scoreMatch(string $candidate, string $indexKey, bool $isOrganis
204214

205215
return 0;
206216
}
217+
218+
private function compact(string $value): string
219+
{
220+
return preg_replace('/[^a-z0-9]/', '', strtolower($value)) ?? '';
221+
}
207222
}
208223

resources/views/community.blade.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,11 @@ class="text-xl md:text-2xl leading-8 text-[#333E48] p-0 mb-6 max-md:max-w-full m
105105
<div class="flex flex-col sm:flex-row gap-3 sm:gap-4">
106106
<a
107107
class="text-nowrap md:w-fit flex justify-center items-center bg-primary hover:bg-hover-orange duration-300 text-[#20262C] rounded-full py-4 px-8 font-semibold text-lg"
108-
href="https://codeweek.eu/contact-us"
108+
href="https://forms.cloud.microsoft/e/kWuLwq0hYR"
109+
target="_blank"
110+
rel="noopener noreferrer"
109111
>
110-
<span>@lang('base.get_in_touch')</span>
112+
<span>Apply now</span>
111113
</a>
112114
<a
113115
class="text-nowrap md:w-fit flex justify-center items-center border-2 border-[#1C4DA1] hover:border-hover-orange text-[#1C4DA1] hover:text-hover-orange duration-300 rounded-full py-4 px-8 font-semibold text-lg bg-white"

0 commit comments

Comments
 (0)