Skip to content

Commit

Permalink
Update PgLOG.py
Browse files Browse the repository at this point in the history
  • Loading branch information
zaihuaji authored Jan 14, 2025
1 parent 9b7cd16 commit 3cdc243
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/rda_python_common/PgLOG.py
Original file line number Diff line number Diff line change
Expand Up @@ -1522,6 +1522,8 @@ def convert_chars(name, default = 'X'):
ch = name[i]
if re.match(r'^[a-zA-Z0-9]$', ch):
newchrs += ch
elif (ch == ' ' or ch == '_') and newchrs:
newchrs += '_'
elif ord(ch) > z and ochrs != None:
if not ochrs:
ochrs = None
Expand Down

0 comments on commit 3cdc243

Please sign in to comment.