We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9e62de0 commit 852c4beCopy full SHA for 852c4be
1 file changed
src/pages/nuevo-empleo.astro
@@ -225,13 +225,15 @@ for (const key in categories) {
225
226
function isBlacklisted(data: any) {
227
const contactFields = [
228
- data.applyEmail.toLowerCase(),
229
- data.applyTelegramUser.toLowerCase(),
230
- data.applyPhone.toLowerCase(),
+ data.applyEmail.toLowerCase().trim(),
+ data.applyTelegramUser.toLowerCase().trim(),
+ data.applyPhone.toLowerCase().trim(),
231
];
232
233
+ const lowerBlacklist = blacklist.map((item) => item.toLowerCase().trim());
234
+
235
for (const field of contactFields) {
- if (field && blacklist.includes(field.toLowerCase())) {
236
+ if (field && lowerBlacklist.includes(field)) {
237
return true;
238
}
239
0 commit comments