Skip to content

Commit

Permalink
Adjusted regex
Browse files Browse the repository at this point in the history
  • Loading branch information
Simbiat authored May 18, 2024
1 parent ccc69ff commit 5ac2126
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Common.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class Common
* @var string
*/
public const string mimeRegex = /** @lang RegExp */
'(?<type>application|audio|image|message|multipart|text|video|(x-[-\w.]+))/[-+\w.]+(?<parameter> *; *[-\w.]+ *= *("*[()<>@,;:/\\\\\[\]?="\-\w. ]+"|[-\w.]+))*';
'(?<type>application|audio|image|message|multipart|text|video|(x-[-\w.]+))\/[-+\w.]+(?<parameter> *; *[-\w.]+ *= *("*[()<>@,;:\/\\\\\[\]?="\-\w. ]+"|[-\w.]+))*';
/**
* Linkage of extensions to MIME types
* @var array
Expand Down

0 comments on commit 5ac2126

Please sign in to comment.