Skip to content
This repository has been archived by the owner on Aug 7, 2018. It is now read-only.

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
make-github-pseudonymous-again committed May 14, 2015
1 parent ec8af1c commit 219ac0b
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions js/dist/pkg.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

opt = extend({}, dflt, opt);

var namespace = opt.name.replace('-', '');
var namespace = opt.name.replace(/-/g, '');

var recbuild = recbuild_t({
fullname: opt.fullname,
Expand Down Expand Up @@ -111,7 +111,7 @@

opt = extend({}, dflt, opt);

if (opt.name) opt.name = opt.name.replace('-', '');
if (opt.name) opt.name = opt.name.replace(/-/g, '');

var recquire = recquire_t(opt);

Expand Down Expand Up @@ -172,7 +172,7 @@
testrunner.run({
code: {
path: path.normalize(opt.code.main.join('/')),
namespace: opt.name.replace('-', '')
namespace: opt.name.replace(/-/g, '')
},
tests: opt.code.test.concat(item).join('/')
}, cb);
Expand Down
2 changes: 1 addition & 1 deletion js/dist/pkg.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion js/dist/pkg.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion js/src/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ var build = function(opt){

opt = extend({}, dflt, opt);

var namespace = opt.name.replace( '-' , '' ) ;
var namespace = opt.name.replace( /-/g , '' ) ;

var recbuild = recbuild_t({
fullname : opt.fullname ,
Expand Down
2 changes: 1 addition & 1 deletion js/src/include.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ var include = function(opt, handler){

opt = extend({}, dflt, opt);

if ( opt.name ) opt.name = opt.name.replace( '-' , '' ) ;
if ( opt.name ) opt.name = opt.name.replace( /-/g , '' ) ;

var recquire = recquire_t(opt);

Expand Down
2 changes: 1 addition & 1 deletion js/src/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ var test = function ( opt ) {
{
code : {
path : path.normalize(opt.code.main.join('/')),
namespace : opt.name.replace( '-' , '' )
namespace : opt.name.replace( /-/g , '' )
},
tests : opt.code.test.concat(item).join('/')
}, cb
Expand Down

0 comments on commit 219ac0b

Please sign in to comment.