Skip to content

Commit 9358559

Browse files
Update packages/react-native-node-api-modules/src/node/path-utils.ts
Co-authored-by: Kræn Hansen <mail@kraenhansen.dk>
1 parent 54bb9ab commit 9358559

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react-native-node-api-modules/src/node/path-utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ export function normalizeModulePath(modulePath: string) {
136136
const basename = path.basename(modulePath);
137137
const strippedBasename = stripExtension(basename).replace(/^lib/, "");
138138
// Replace backslashes with forward slashes for cross-platform compatibility
139-
return path.join(dirname, strippedBasename).replace(/\\/g, "/");
139+
return path.join(dirname, strippedBasename).replaceAll("\\", "/");
140140
}
141141

142142
export function escapePath(modulePath: string) {

0 commit comments

Comments
 (0)