Skip to content

Commit d833981

Browse files
committed
fix: there could be nested LWC templates
1 parent 6c9cca3 commit d833981

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/shared/metadataKeys.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { getMetadataKey } from './remoteSourceTrackingService';
1010
// LWC can have child folders (ex: dynamic templates like /templates/noDataIllustration.html
1111
const pathAfterFullName = (fileResponse: RemoteSyncInput): string =>
1212
fileResponse && fileResponse.filePath
13-
? fileResponse.filePath.substr(fileResponse.filePath.indexOf(fileResponse.fullName)).replace('\\', '/')
13+
? fileResponse.filePath.substr(fileResponse.filePath.indexOf(fileResponse.fullName)).replace(/\\/gi, '/')
1414
: '';
1515

1616
// handle all "weird" type/name translation between SourceMember and SDR FileResponse

0 commit comments

Comments
 (0)