Skip to content

Commit

Permalink
Merge pull request #44 from L-Qun/main
Browse files Browse the repository at this point in the history
fix: compatible with windows
  • Loading branch information
chengcyber authored Mar 5, 2024
2 parents ba05397 + c858657 commit eb3eda4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion apps/sparo-lib/src/services/SparoProfileService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
10 changes: 10 additions & 0 deletions common/changes/sparo/main_2024-03-04-23-35.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "sparo",
"comment": "Fix a compatibility issue when getting profile name on Windows OS",
"type": "none"
}
],
"packageName": "sparo"
}

0 comments on commit eb3eda4

Please sign in to comment.