Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file not shown.
4 changes: 2 additions & 2 deletions scripts/rtl_ltr_linter.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ def is_rtl_filename(path):
# Example: Book Title - Author (Metadata)
BOOK_ITEM_RE = re.compile(
r"^\s*\[(?P<title>.+?)\]\((?P<url>.+?)\)" # Title and URL (required)
r"(?:\s*[-–—]\s*(?P<author>[^\(\n\[]+?))?" # Author (optional), separated by -, –, —
r"(?:\s*[\(\[](?P<meta>.*?)[\)\]])?\s*$" # Metadata (optional), enclosed in parentheses () or []
r"(?:\s*[-–—]\s*(?P<author>.*?))?" # Author (optional), separated by -, –, —
r"(?:\s*[\(\[](?P<meta>[^\]\)]*)[\)\]])?\s*$" # Metadata (optional), enclosed in parentheses () or []
)

# Regex to find the dir="rtl" or dir="ltr" attribute in an HTML tag
Expand Down
Loading