mirror of
https://github.com/swc-project/swc.git
synced 2024-11-28 11:13:43 +03:00
fix(testing): Allow space in file names (#5237)
This commit is contained in:
parent
1cbfc96917
commit
de76868cad
@ -147,6 +147,7 @@ pub fn expand(callee: &Ident, attr: Config) -> Result<Vec<ItemFn>, Error> {
|
|||||||
.replace('/', "__")
|
.replace('/', "__")
|
||||||
.replace('.', "_")
|
.replace('.', "_")
|
||||||
.replace('-', "_")
|
.replace('-', "_")
|
||||||
|
.replace(' ', "_")
|
||||||
)
|
)
|
||||||
.replace("___", "__");
|
.replace("___", "__");
|
||||||
let test_ident = Ident::new(&test_name, Span::call_site());
|
let test_ident = Ident::new(&test_name, Span::call_site());
|
||||||
|
Loading…
Reference in New Issue
Block a user