Skip to content

Commit 19c27f3

Browse files
authored
Escape regex (#6255)
1 parent d01086a commit 19c27f3

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

panel/io/resources.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ def parse_template(*args, **kwargs):
100100
LOCAL_DIST = "static/extensions/panel/"
101101
COMPONENT_PATH = "components/"
102102

103-
BK_PREFIX_RE = re.compile('\.bk\.')
103+
BK_PREFIX_RE = re.compile(r'\.bk\.')
104104

105105
RESOURCE_URLS = {
106106
'font-awesome': {

panel/pane/equation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def is_sympy_expr(obj: Any) -> bool:
3434

3535

3636
class LaTeX(ModelPane):
37-
"""
37+
r"""
3838
The `LaTeX` pane allows rendering LaTeX equations. It uses either
3939
`MathJax` or `KaTeX` depending on the defined renderer.
4040

panel/pane/vega.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def ds_as_cds(dataset):
4040

4141
_containers = ['hconcat', 'vconcat', 'layer']
4242

43-
SCHEMA_REGEX = re.compile('^v(\d+)\.\d+\.\d+.json')
43+
SCHEMA_REGEX = re.compile(r'^v(\d+)\.\d+\.\d+.json')
4444

4545
def _isin(obj, attr):
4646
if isinstance(obj, dict):

0 commit comments

Comments
 (0)