mimarec / swagger-doc-viewer

Viewer documentation for a OpenAPI Specification (fka The Swagger Specification)
MIT License
6 stars 5 forks source link

changed regex to get filename #1

Closed antxxxx closed 8 years ago

antxxxx commented 8 years ago

this is so it works on windows, mac and linux.

The existing regex expression only worked on filenames on mac/linux - eg /home/anthony/git/Source/Repos/comms-api/apiproxy/resources/node/api/swagger/swagger.yaml This should allow it work on windows as well - eg c:\git\Source\Repos\comms-api\apiproxy\resources\node\api\swagger\swagger.yaml

I have tested this on windows and it works, but dont have a mac or linux machine to test it on so cant confirm it works on there. I have however tested the regex expression and it works with both types of filenames

mimarec commented 8 years ago

great!! thanks for correction