From f9305e351a2914a8888c690fddb391543d0565af Mon Sep 17 00:00:00 2001 From: zuhito Date: Sat, 11 Nov 2017 02:28:16 +0900 Subject: [PATCH] Handle space in method name --- lib/codegen.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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){