-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Html Sgml confusion #27
Comments
Same issue for me. Is there a way to make it work anyway ? |
Currently, the following matchers already exist with a higher precedence than the sgml matcher:
Does your document have something other than exactly the following at position 0 in the file? Note that the default matchers are exact matches and don't ignore whitespace, etc. |
I found why the detection is not working. The file case is important and the file starts with: |
You can, just not with the string matcher. You'll need to use the regex matcher type. See the magic.xml for a couple examples. Sorry for the bad paste above. There are existing matchers for this, which are actually regex already, they just aren't using the /i flag.
|
i have tried to match an html file mime type detected sgml
both starts with 'doctype' but html file continues with 'html'
maybe it is required to order mathchers
The text was updated successfully, but these errors were encountered: