jumpserver/apps/common/utils/strings.py

6 lines
75 B
Python
Raw Normal View History

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