From 01eb6efcd87e30c17103cf225ba697b966cae5e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D9=81=D8=A7=D8=B7=D9=85=D9=87=20=D8=AA=D9=82=DB=8C=20?= =?UTF-8?q?=D9=BE=D9=88=D8=B1?= <20+f.taghipour@noreply.localhost> Date: Tue, 10 Nov 2026 09:29:36 +0000 Subject: [PATCH] Update index.html --- index.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/index.html b/index.html index b2cd74f..8f822f2 100644 --- a/index.html +++ b/index.html @@ -241,13 +241,13 @@ function searchDocuments() { } const matches = documents.filter(doc => { - const titleWords = normalize(doc.title) - .split(/[\s\-_]+/); + const title = normalize(doc.title); + const id = normalize(doc.id); - const id = normalize(doc.id); + const titleWords = title.match(/[\p{L}\p{N}]+/gu) || []; - return titleWords.includes(query) || id === query; - }); + return titleWords.includes(query) || id === query; +}); status.textContent = `${matches.length} نتیجه پیدا شد.`;