Skip to content

Commit df7cb09

Browse files
committed
Fixed regex issue by replacing \s with [:space:] for better Qt compatibility.
1 parent 25c0139 commit df7cb09

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/dialogs/find.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def initUI(self):
4646
self.search_label = QLabel('اكتب ما تريد البحث عنه:')
4747
self.search_box = QLineEdit(self)
4848
self.search_box.setText(self.search_phrase)
49-
regex = QRegularExpression("[\u0621-\u0652\u0670\u0671\s]+") # Arabic letters, hamzas, diacritics, and spaces.
49+
regex = QRegularExpression("[\u0621-\u0652\u0670\u0671[:space:]]+") # Arabic letters, hamzas, diacritics, and spaces.
5050
validator = QRegularExpressionValidator(regex)
5151
self.search_box.setValidator(validator)
5252
self.search_box.textChanged.connect(self.OnEdit)

0 commit comments

Comments
 (0)