mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-09 23:15:58 -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
|
||||
for c, r in sorted(html_map.items(),
|
||||
key=lambda x: 0 if x[0] == '&' else 1):
|
||||
text = text.replace(c, r)
|
||||
if text:
|
||||
for c, r in sorted(html_map.items(),
|
||||
key=lambda x: 0 if x[0] == '&' else 1):
|
||||
text = text.replace(c, r)
|
||||
|
||||
return text
|
||||
|
||||
@ -65,8 +66,9 @@ def underscore_unescape(text):
|
||||
}
|
||||
|
||||
# always replace & first
|
||||
for c, r in html_map.items():
|
||||
text = text.replace(c, r)
|
||||
if text:
|
||||
for c, r in html_map.items():
|
||||
text = text.replace(c, r)
|
||||
|
||||
return text
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user