Skip to content

Commit

Permalink
Escape regex (#6255)
Browse files Browse the repository at this point in the history
  • Loading branch information
hoxbro authored Jan 22, 2024
1 parent d01086a commit 19c27f3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion panel/io/resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def parse_template(*args, **kwargs):
LOCAL_DIST = "static/extensions/panel/"
COMPONENT_PATH = "components/"

BK_PREFIX_RE = re.compile('\.bk\.')
BK_PREFIX_RE = re.compile(r'\.bk\.')

RESOURCE_URLS = {
'font-awesome': {
Expand Down
2 changes: 1 addition & 1 deletion panel/pane/equation.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def is_sympy_expr(obj: Any) -> bool:


class LaTeX(ModelPane):
"""
r"""
The `LaTeX` pane allows rendering LaTeX equations. It uses either
`MathJax` or `KaTeX` depending on the defined renderer.
Expand Down
2 changes: 1 addition & 1 deletion panel/pane/vega.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def ds_as_cds(dataset):

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

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

def _isin(obj, attr):
if isinstance(obj, dict):
Expand Down

0 comments on commit 19c27f3

Please sign in to comment.