fix(js2dart): make tests work again

This commit is contained in:
Tobias Bosch 2014-09-26 09:53:26 -07:00
parent a75a3d0b31
commit 7e3005e705
2 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@ export class DartTreeWriter extends JavaScriptParseTreeWriter {
super(); super();
this.libName = moduleName this.libName = moduleName
.replace(/\//g, '.') .replace(/\//g, '.')
.replace(/[^\w.]/, '_') .replace(/[^\w.]/g, '_')
.replace('.lib.', '.') .replace('.lib.', '.')
.replace(/\.dart$/, ''); .replace(/\.dart$/, '');
} }