mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Fixed API test case for PSQL
This commit is contained in:
parent
038ab5eb90
commit
d98ce3864f
@ -41,9 +41,10 @@ def underscore_escape(text):
|
|||||||
}
|
}
|
||||||
|
|
||||||
# always replace & first
|
# always replace & first
|
||||||
for c, r in sorted(html_map.items(),
|
if text:
|
||||||
key=lambda x: 0 if x[0] == '&' else 1):
|
for c, r in sorted(html_map.items(),
|
||||||
text = text.replace(c, r)
|
key=lambda x: 0 if x[0] == '&' else 1):
|
||||||
|
text = text.replace(c, r)
|
||||||
|
|
||||||
return text
|
return text
|
||||||
|
|
||||||
@ -65,8 +66,9 @@ def underscore_unescape(text):
|
|||||||
}
|
}
|
||||||
|
|
||||||
# always replace & first
|
# always replace & first
|
||||||
for c, r in html_map.items():
|
if text:
|
||||||
text = text.replace(c, r)
|
for c, r in html_map.items():
|
||||||
|
text = text.replace(c, r)
|
||||||
|
|
||||||
return text
|
return text
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user