diff --git a/ReactNativeClient/lib/models/Note.js b/ReactNativeClient/lib/models/Note.js index 20a33190bb..cbe186d215 100644 --- a/ReactNativeClient/lib/models/Note.js +++ b/ReactNativeClient/lib/models/Note.js @@ -153,6 +153,8 @@ class Note extends BaseItem { useAbsolutePaths: false, }, options); + this.logger().info('replaceResourceInternalToExternalLinks', 'options:', options, 'body:', body); + const resourceIds = await this.linkedResourceIds(body); const Resource = this.getClass('Resource'); @@ -180,6 +182,8 @@ class Note extends BaseItem { pathsToTry.push(Resource.baseRelativeDirectoryPath()); } + this.logger().info('replaceResourceExternalToInternalLinks', 'options:', options, 'pathsToTry:', pathsToTry, 'body:', body); + for (const basePath of pathsToTry) { const reString = `${pregQuote(`${basePath}/`)}[a-zA-Z0-9.]+`; const re = new RegExp(reString, 'gi');