Skip to content

Commit d159a70

Browse files
hoxbrophilippjfr
authored andcommitted
Escape regex (#6255)
1 parent 6c790f9 commit d159a70

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
@@ -102,7 +102,7 @@ def parse_template(*args, **kwargs):
102102
LOCAL_DIST = "static/extensions/panel/"
103103
COMPONENT_PATH = "components/"
104104

105-
BK_PREFIX_RE = re.compile('\.bk\.')
105+
BK_PREFIX_RE = re.compile(r'\.bk\.')
106106

107107
RESOURCE_URLS = {
108108
'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)