diff options
Diffstat (limited to 'build.js')
-rw-r--r-- | build.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/build.js b/build.js index 71e9b8a..39f8a62 100644 --- a/build.js +++ b/build.js @@ -605,9 +605,9 @@ const parsePostText = async (text) => { return fixWS` <div class="art-container${options.fullwidth ? ' full-width' : ''}"><div> - <a href="static/media/${encodeURIComponent(filename)}.png"><img alt="${filename.match(/^[0-9]+-(.*)$/)[1]}" src="static/media/${encodeURIComponent(filename)}.png"></a> + <a href="static/media/${encodeURIComponent(filename)}.png"><img alt="${filename.match(/^[0-9a-z]+-(.*)$/)[1]}" src="static/media/${encodeURIComponent(filename)}.png"></a> ${options.noext ? '' : fixWS` - <br>(<a href="static/media/${encodeURIComponent(filename)}.${options.ext}">${filename.match(/^[0-9]+-(.*)$/)[1]}.${options.ext}</a>) + <br>(<a href="static/media/${encodeURIComponent(filename)}.${options.ext}">${filename.match(/^[0-9a-z]+-(.*)$/)[1]}.${options.ext}</a>) `} </div></div> ` |