Message ID | 20250606-conf-syntax-warning-v1-1-4ebc90ae7d69@cherry.de |
---|---|
State | Under Review |
Headers | show |
Series | docs: conf.py: silence SyntaxWarning on js_splitter_code | expand |
diff --git a/documentation/conf.py b/documentation/conf.py index ad60d911394561f16dc28b3d41329f08e6c0999b..1eca8756abac72d311b39144f65910d28b4e3aec 100644 --- a/documentation/conf.py +++ b/documentation/conf.py @@ -182,7 +182,7 @@ class DashFriendlySearchEnglish(SearchEnglish): # Accept words that can include hyphens _word_re = re.compile(r'[\w\-]+') - js_splitter_code = """ + js_splitter_code = r""" function splitQuery(query) { return query .split(/[^\p{Letter}\p{Number}_\p{Emoji_Presentation}-]+/gu)