« get me outta code hell

Art dump 2019 Q1 - blog - My blog website - https://florrie.ed1.club
about summary refs log tree commit diff
path: root/build.js
diff options
context:
space:
mode:
authorFlorrie <towerofnix@gmail.com>2019-04-03 00:37:03 -0300
committerFlorrie <towerofnix@gmail.com>2019-04-03 00:37:03 -0300
commit4faa39171b306a940c001f3c14ab46baa19934d2 (patch)
tree2de7bd35fa81f7a3099baa7503cb1e590aa27ba4 /build.js
parent15aef933f68f7c5ce4a6f49f183a5b3f6934a5ca (diff)
Art dump 2019 Q1
Diffstat (limited to 'build.js')
-rw-r--r--build.js4
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>
       `