Skip to content

Commit 4e138d4

Browse files
authored
πŸ“š Fix escape sequences (#1470)
This fixes the docs build warnings emitted by RST highlighting: ``` <unknown>:1: SyntaxWarning: invalid escape sequence '\.' <string>:1: SyntaxWarning: invalid escape sequence '\.' <unknown>:1: SyntaxWarning: invalid escape sequence '\w' <string>:1: SyntaxWarning: invalid escape sequence '\w' ```
1 parent 6e9359a commit 4e138d4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

β€Ždocs/filter.rstβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ The second parameter should be one of the above variables(status, id, content, .
225225
.. req:: Set admin e-mail to [email protected]
226226

227227
.. needlist::
228-
:filter: search("([a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+$)", title)
228+
:filter: search(r"([a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+$)", title)
229229

230230
.. _filter_string_performance:
231231

β€Ždocs/roles.rstβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ See :ref:`filter_string` for more information.
153153
| Specification needs: :need_count:`type=='spec'`
154154
| Open specification needs: :need_count:`type=='spec' and status=='open'`
155155
| Needs with tag *test*: :need_count:`'test' in tags`
156-
| Needs with title longer 10 chars: :need_count:`search("[\\w\\s]{10,}", title)`
156+
| Needs with title longer 10 chars: :need_count:`search(r"[\w\s]{10,}", title)`
157157
| All need_parts: :need_count:`is_part`
158158
| All needs containing need_parts: :need_count:`is_need and len(parts)>0`
159159

0 commit comments

Comments
Β (0)