Skip to content

Commit 127da40

Browse files
committed
possibly fix for the broken test...
1 parent a113b99 commit 127da40

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

browser/main/lib/dataApi/attachmentManagement.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -423,8 +423,8 @@ function replaceNoteKeyWithNewNoteKey (noteContent, oldNoteKey, newNoteKey) {
423423
function removeStorageAndNoteReferences (input, noteKey) {
424424
return input.replace(new RegExp('/?' + STORAGE_FOLDER_PLACEHOLDER + '.*?("|])', 'g'), function (match) {
425425
var encodedPathSeparators = new RegExp(mdurl.encode(path.win32.sep) + '|' + mdurl.encode(path.posix.sep), 'g')
426-
return match.replace(encodedPathSeparators, path.sep)
427-
}).replace(new RegExp(STORAGE_FOLDER_PLACEHOLDER + '(' + escapeStringRegexp(path.sep) + noteKey + ')?', 'g'), DESTINATION_FOLDER)
426+
return match.replace(encodedPathSeparators, path.sep).replace(new RegExp(STORAGE_FOLDER_PLACEHOLDER + '(' + escapeStringRegexp(path.sep) + noteKey + ')?', 'g'), DESTINATION_FOLDER)
427+
})
428428
}
429429

430430
/**

0 commit comments

Comments
 (0)