Skip to content

Commit f9305e3

Browse files
authored
Handle space in method name
1 parent d27dda0 commit f9305e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/codegen.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ var _ = require('lodash');
88
var ts = require('./typescript');
99

1010
var normalizeName = function(id) {
11-
return id.replace(/\.|\-|\{|\}/g, '_');
11+
return id.replace(/\.|\-|\{|\}|\s/g, '_');
1212
};
1313

1414
var getPathToMethodName = function(opts, m, path){

0 commit comments

Comments
 (0)