Skip to content

Commit

Permalink
Fix auralia#7
Browse files Browse the repository at this point in the history
  • Loading branch information
dithpri authored Dec 12, 2021
1 parent 681420d commit ad6c9b3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -982,8 +982,7 @@ export class NsApi {
* @return The converted name.
*/
private static toId(name: string) {
return name.replace("_", " ")
.trim()
return name.trim()
.toLowerCase()
.replace(" ", "_");
}
Expand Down

0 comments on commit ad6c9b3

Please sign in to comment.