mirror of
https://github.com/tiktok/sparo.git
synced 2025-03-27 13:22:07 -04:00
commit
eb3eda4e4e
2 changed files with 11 additions and 1 deletions
|
@ -98,7 +98,7 @@ export class SparoProfileService {
|
|||
}
|
||||
|
||||
private static _getProfileName(profilePath: string): string {
|
||||
const pathArr: string[] = profilePath.split('/');
|
||||
const pathArr: string[] = profilePath.split(path.sep);
|
||||
const last: string = pathArr[pathArr.length - 1];
|
||||
if (last.endsWith('.json')) {
|
||||
return last.slice(0, -5);
|
||||
|
|
10
common/changes/sparo/main_2024-03-04-23-35.json
Normal file
10
common/changes/sparo/main_2024-03-04-23-35.json
Normal file
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
"changes": [
|
||||
{
|
||||
"packageName": "sparo",
|
||||
"comment": "Fix a compatibility issue when getting profile name on Windows OS",
|
||||
"type": "none"
|
||||
}
|
||||
],
|
||||
"packageName": "sparo"
|
||||
}
|
Loading…
Add table
Reference in a new issue