Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • S shared-mime-info
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 38
    • Issues 38
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 27
    • Merge requests 27
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • xdg
  • shared-mime-info
  • Merge requests
  • !103

text/vnd.trolltech.linguist: require XML whitespace or closing > in magic

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Ville Skyttä requested to merge work/scop/linguist-xml-magic into master Dec 30, 2020
  • Overview 2
  • Commits 1
  • Pipelines 3
  • Changes 1

https://doc.qt.io/qt-5/linguist-ts-file-format.html

Avoids some more MPEG TS confusion. Hopefully that is -- I haven't been able to locate MPEG TS samples that would be misdetected as linguist files in the first place. But because of that, I think it's fair to assume that the sequence <TS is not that common in them, and thus it followed by XML whitespace or the start tag closing > could be even less common.

Not checking for <TS/ as the root element may not be empty per the DTD.

Refs #10

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: work/scop/linguist-xml-magic