jumpserver/apps/common/utils/strings.py

6 lines
75 B
Python

import re
def no_special_chars(s):
return bool(re.match(r'\w+$', s))