Skip to content

Commit 3d9cbca

Browse files
committed
Allow a whole word as audit mode character
1 parent ae121c5 commit 3d9cbca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nxc/config.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,5 @@
4343

4444
# this should probably be put somewhere else, but if it's in the config helpers, there is a circular import
4545
def process_secret(text):
46-
hidden = text[:reveal_chars_of_pwd]
47-
return text if not audit_mode else hidden + audit_mode * 8
46+
reveal = text[:reveal_chars_of_pwd]
47+
return text if not audit_mode else reveal + (audit_mode if len(audit_mode) > 1 else audit_mode * 8)

0 commit comments

Comments
 (0)