File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " node-red-node-swagger" ,
3- "version" : " 0.1.6 " ,
3+ "version" : " 0.1.7 " ,
44 "description" : " A set of tools for generating Swagger API documentation based on the HTTP nodes deployed in a flow" ,
55 "license" : " Apache" ,
66 "repository" : {
Original file line number Diff line number Diff line change @@ -163,13 +163,13 @@ module.exports = function(RED) {
163163
164164 RED . httpAdmin . get ( '/swagger-ui/reqs/i18next.min.js' , function ( req , res ) {
165165 var basePath = require . resolve ( 'i18next-client' ) ;
166- basePath = basePath . replace ( / \/ i 1 8 n e x t .j s $ / , "" ) ;
166+ basePath = basePath . replace ( / [ \\ \/ ] i 1 8 n e x t .j s $ / , "" ) ;
167167 var filename = path . join ( basePath , 'i18next.min.js' ) ;
168168 sendFile ( res , filename ) ;
169169 } ) ;
170170 RED . httpAdmin . get ( '/swagger-ui/reqs/*' , function ( req , res ) {
171171 var basePath = require . resolve ( 'swagger-ui' ) ;
172- basePath = basePath . replace ( / \/ s w a g g e r - u i .j s $ / , "" ) ;
172+ basePath = basePath . replace ( / [ \\ \/ ] s w a g g e r - u i .j s $ / , "" ) ;
173173 var filename = path . join ( basePath , req . params [ 0 ] ) ;
174174 sendFile ( res , filename ) ;
175175 } ) ;
You can’t perform that action at this time.
0 commit comments