Update index.html
This commit is contained in:
+5
-5
@@ -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} نتیجه پیدا شد.`;
|
||||
|
||||
مرجع در شماره جدید
مسدود کردن کاربر