made pattern raw string
This commit is contained in:
1 parent
85c227292f
commit
ca8557f69e
1 file changed
+1
-1
@@ -53,7 +53,7 @@ def check_pgroup(string):
|
||||
return string
|
||||
|
||||
def is_pgroup(string):
|
||||
pattern = "^p\d{5}$"
|
||||
pattern = r"^p\d{5}$"
|
||||
return re.match(pattern, string)
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user