Skip to content
Snippets Groups Projects
Commit 21f5955c authored by Hugo SUBTIL's avatar Hugo SUBTIL
Browse files

fix: add https to regex replace

parent 8e6ed525
No related branches found
No related tags found
2 merge requests!96release V1.10.0,!48Dev
...@@ -57,7 +57,7 @@ export class PostsController { ...@@ -57,7 +57,7 @@ export class PostsController {
post.feature_image.split('/content')[1] post.feature_image.split('/content')[1]
}`; }`;
const regex = /(https?:\/\/ghost):(\d*)?/g; // (https?://ghost):(\d*)?/ const regex = /(https?:\/\/ghost):(\d*)?/g; // (https?://ghost):(\d*)?/
post.html = post.html.replace(regex, `${this.configService.config.host}`); post.html = post.html.replace(regex, `https://${this.configService.config.host}`);
} }
return post; return post;
}); });
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment