Skip to content

Commit

Permalink
Fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
webpro committed May 21, 2022
1 parent 29184a2 commit 981fc2a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/static.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,11 @@ const copyAssetsAndWriteFile = async (sourceDir, file, targetDir) => {

let image;
const html = md.marked(markdown.toString());
while (image = htmlImageRE.exec(html)) {
while ((image = htmlImageRE.exec(html))) {
const [, imgPath] = image;
if (!isAbsoluteURL(imgPath)) {
const relPath = path.join(path.dirname(file), imgPath);
awaits.push(cp(path.join(sourceDir, relPath), path.join(targetDir, relPath)).catch((err) => console.warn(err)));
awaits.push(cp(path.join(sourceDir, relPath), path.join(targetDir, relPath)).catch(err => console.warn(err)));
}
}

Expand Down

0 comments on commit 981fc2a

Please sign in to comment.