diff --git a/lib/codegen.js b/lib/codegen.js index 6a7ded09..54dbe7ef 100644 --- a/lib/codegen.js +++ b/lib/codegen.js @@ -8,7 +8,7 @@ var _ = require('lodash'); var ts = require('./typescript'); var normalizeName = function(id) { - return id.replace(/\.|\-|\{|\}/g, '_'); + return id.replace(/\.|\-|\{|\}|\s/g, '_'); }; var getPathToMethodName = function(opts, m, path){