remove comments

This commit is contained in:
hamid zarghami
2025-08-17 11:31:29 +03:30
parent bec4c2c1d1
commit 561bf9d5d5
26 changed files with 13 additions and 172 deletions
-2
View File
@@ -8,11 +8,9 @@ const useDetectLatinAndNumbers = () => {
if (node.nodeType === Node.TEXT_NODE) {
const textContent = node.nodeValue;
if (textContent) {
// اگر عدد داشت
if (/\d/.test(textContent)) {
element.classList.add("has-number");
}
// اگر حرف لاتین داشت
if (/[a-zA-Z]/.test(textContent)) {
element.classList.add("has-latin");
}