Merge pull request #13231 from josephalbaph/patch-12

fix: DeprecationWarning: invalid escape sequence \<
This commit is contained in:
mergify[bot] 2021-05-16 01:17:53 +00:00 committed by GitHub
commit f5f20dcc40
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -34,10 +34,10 @@ def get_context(context):
boot_json = frappe.as_json(boot)
# remove script tags from boot
boot_json = re.sub("\<script[^<]*\</script\>", "", boot_json)
boot_json = re.sub(r"\<script[^<]*\</script\>", "", boot_json)
# TODO: Find better fix
boot_json = re.sub("</script\>", "", boot_json)
boot_json = re.sub(r"</script\>", "", boot_json)
context.update({
"no_cache": 1,