mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-05-03 15:41:06 -04:00
Factor out string escaping code
So that it only lives in one place.
This commit is contained in:
@@ -379,3 +379,7 @@ def get_cdn_domain():
|
||||
domain = parsed_uri.netloc[len(subdomain + '.'):]
|
||||
|
||||
return "static-logos.{}".format(domain)
|
||||
|
||||
|
||||
def unescape_string(string):
|
||||
return bytes(string, "utf-8").decode('unicode_escape')
|
||||
|
||||
Reference in New Issue
Block a user