Spaces:
Sleeping
Sleeping
Update helpers/utils.py
Browse files- helpers/utils.py +2 -1
helpers/utils.py
CHANGED
|
@@ -20,8 +20,9 @@ def clean_text_block(text: str) -> str:
|
|
| 20 |
# ---------------------------------------
|
| 21 |
# أنماط المواد والأقسام
|
| 22 |
# ---------------------------------------
|
|
|
|
| 23 |
ARTICLE_PATTERN = re.compile(
|
| 24 |
-
r"^\s*(?:ال?ماد[ةه])\s*[\(\s
|
| 25 |
re.IGNORECASE
|
| 26 |
)
|
| 27 |
|
|
|
|
| 20 |
# ---------------------------------------
|
| 21 |
# أنماط المواد والأقسام
|
| 22 |
# ---------------------------------------
|
| 23 |
+
|
| 24 |
ARTICLE_PATTERN = re.compile(
|
| 25 |
+
r"^\s*(?:ال?ماد[ةه])\s*[\(]?\s*([0-9٠-٩]+(?:\s*مكرر)?)\s*[\)]?\s*(.*)$",
|
| 26 |
re.IGNORECASE
|
| 27 |
)
|
| 28 |
|