Skip to content

Commit dda5307

Browse files
committed
fix: [tools] Fixed regex for pehash attribute type validation
- Was still containing a delimiter as in PHP
1 parent 88218f5 commit dda5307

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pymisp/tools/attributevalidationtool.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ def validate(cls, attribute_type, value):
321321
return True
322322
return 'Unknown HTTP method.'
323323
case 'filename|pehash':
324-
if re.fullmatch(r'^.+\|[0-9a-f]{40}$#', value):
324+
if re.fullmatch(r'^.+\|[0-9a-f]{40}$', value):
325325
return True
326326
return (
327327
"The input doesn't match the expected filename|sha1 format "

0 commit comments

Comments
 (0)