bhollis / jsonview

A web extension that helps you view JSON documents in the browser.
http://jsonview.com
MIT License
1.53k stars 227 forks source link

Add a dot in jsonContentType regex #179

Closed Arkelis closed 2 years ago

Arkelis commented 3 years ago

Some content types containing a dot are not recognized by the regex. Adding a dot could add support for content types like application/vdn.api+json

Basically, /^application\/([a-z]+\+)?json($|;)/ becomes /^application\/([a-z.]+\+)?json($|;)/

mira01 commented 3 years ago

+1 Hi, this PR solves the issue I am facing. I vote for merging.