fix(js2dart): make tests work again
This commit is contained in:
parent
a75a3d0b31
commit
7e3005e705
|
@ -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$/, '');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue