We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a62b888 commit e12e2c3Copy full SHA for e12e2c3
1 file changed
vscode-extension/src/decompiler/nodeUri.ts
@@ -64,15 +64,15 @@ export function uriToNode(uri: vscode.Uri): NodeMetadata | undefined {
64
65
function trimLeadingSlashes(input: string) {
66
let result = input;
67
- if (result.startsWith("/")) {
+ if (result.startsWith(path.sep)) {
68
result = result.substring(1);
69
}
70
return result;
71
72
73
function trimTrailingSlashes(input: string) {
74
75
- if (result.endsWith("/")) {
+ if (result.endsWith(path.sep)) {
76
result = result.slice(0, -1);
77
78
0 commit comments