Skip to content

Commit 8cb166a

Browse files
committed
add alphanumeric with special char regex expression
Signed-off-by: rpotter12 <rohitpotter12@gmail.com>
1 parent 17d4164 commit 8cb166a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/packagedcode/cocoapods.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,13 +148,13 @@ def build_package(podspec_data):
148148

149149

150150
person_parser = re.compile(
151-
r'^(?P<name>[a-zA-Z0-9\s]+)'
151+
r'^(?P<name>[\w\s(),-_.,]+)'
152152
r'=>'
153153
r'(?P<email>[\S+]+$)'
154154
).match
155155

156156
person_parser_only_name = re.compile(
157-
r'^(?P<name>[a-zA-Z0-9\s]+)'
157+
r'^(?P<name>[\w\s(),-_.,]+)'
158158
).match
159159

160160

0 commit comments

Comments
 (0)