diff options
author | Florrie <towerofnix@gmail.com> | 2019-04-03 00:37:03 -0300 |
---|---|---|
committer | Florrie <towerofnix@gmail.com> | 2019-04-03 00:37:03 -0300 |
commit | 4faa39171b306a940c001f3c14ab46baa19934d2 (patch) | |
tree | 2de7bd35fa81f7a3099baa7503cb1e590aa27ba4 /build.js | |
parent | 15aef933f68f7c5ce4a6f49f183a5b3f6934a5ca (diff) |
Art dump 2019 Q1
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> ` |