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
A Plain-file rule that combines a filename regex with a MIME regex can fail even when both values should match. PlainSettings.test(filename:mimeType:) builds the MIME search range from filename rather than mimeType:
For short filenames this truncates the MIME search range. For example, the filename hproxy produces a six-character range, so the pattern text/x-shellscript cannot match the detected MIME value.
Reproduction
Syntax Highlight 2.1.30 (79):
Create an executable extensionless file named hproxy beginning with #!/bin/bash.
Activity