You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The is-binary.js checker converts the developer-specified content types to Regex without escaping them, which is can cause overly broad selection or other issues during the Regex match.
For example, the following binary selector for an XLSX document (application/vnd.openxmlformats-officedocument.spreadsheetml.sheet ) will match any character at the . of this content type, and also leads the tailing asterisk to become ..*
I think developers would generally expect to either pass their own Regex, or for the * character to be the only recognized character (and possibly other glob patterns, but not all of Regex).
The text was updated successfully, but these errors were encountered:
The
is-binary.js
checker converts the developer-specified content types to Regex without escaping them, which is can cause overly broad selection or other issues during the Regex match.For example, the following binary selector for an XLSX document (
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
) will match any character at the.
of this content type, and also leads the tailing asterisk to become..*
I think developers would generally expect to either pass their own Regex, or for the
*
character to be the only recognized character (and possibly other glob patterns, but not all of Regex).The text was updated successfully, but these errors were encountered: