Minor update

This commit is contained in:
Miroslav Stampar
2025-12-29 23:29:39 +01:00
parent 0a6b5fb747
commit f2560776e9
4 changed files with 9 additions and 8 deletions

View File

@@ -4542,7 +4542,7 @@ def randomizeParameterValue(value):
if original != candidate:
break
retVal = retVal.replace(original, candidate)
retVal = retVal.replace(original, candidate, 1)
if re.match(r"\A[^@]+@.+\.[a-z]+\Z", value):
parts = retVal.split('.')
@@ -5159,8 +5159,8 @@ def prioritySortColumns(columns):
Sorts given column names by length in ascending order while those containing
string 'id' go first
>>> prioritySortColumns(['password', 'userid', 'name'])
['userid', 'name', 'password']
>>> prioritySortColumns(['password', 'userid', 'name', 'id'])
['id', 'userid', 'name', 'password']
"""
def _(column):