Skip to content

Commit e0bd692

Browse files
committed
support images in markdown for 3 letter lang codes
1 parent bb79eda commit e0bd692

File tree

1 file changed

+1
-1
lines changed
  • plugins/gatsby-remark-fix-static-urls

1 file changed

+1
-1
lines changed

plugins/gatsby-remark-fix-static-urls/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const isRelativeUrl = require("is-relative-url")
1919
module.exports = ({ markdownNode, markdownAST }) => {
2020
const fileAbsoluteDir = path.dirname(markdownNode.fileAbsolutePath)
2121
const sourceAbsoluteDir = fileAbsoluteDir.replace(
22-
/translations\/\w{2}(-\w{2})?\//,
22+
/translations\/\w{2,3}(-\w{2})?\//,
2323
""
2424
)
2525
const relativePath = path.relative(fileAbsoluteDir, sourceAbsoluteDir)

0 commit comments

Comments
 (0)