Skip to content

Commit

Permalink
Update regex to match file paths.
Browse files Browse the repository at this point in the history
  • Loading branch information
Pavel910 committed Feb 2, 2019
1 parent a167d28 commit e3083e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/demo-api/tasks/exportBlocks/exportBlocks.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export default async () => {
await Promise.all(
blocks.map(async data => {
// Copy images.
const regex = /http:\/\/localhost.*\/files\/(.*?)"/gm;
const regex = /\/files\/(.*?)"/gm;
const str = data.content;
let m;

Expand Down

0 comments on commit e3083e4

Please sign in to comment.