]> Lady’s Gitweb - Beorn/blobdiff - build.js
Be more precise checking for date‐named directories
[Beorn] / build.js
index aaa13ed814f2b3f5fcca481e66103f0b52e3d33e..9ae91c9f68f5702518d1662b67eaf87aef9b86ce 100755 (executable)
--- a/build.js
+++ b/build.js
@@ -1018,7 +1018,7 @@ await (async () => { // this is the run script
   ) {
     // Iterate over each directory and process the ones which are
     // dates.
   ) {
     // Iterate over each directory and process the ones which are
     // dates.
-    if (!isDirectory || !/[0-9]{4}-[0-9]{2}-[0-9]{2}/u.test(date)) {
+    if (!isDirectory || !/^[0-9]{4}-[0-9]{2}-[0-9]{2}$/u.test(date)) {
       // This isn’t a dated directory.
       continue;
     } else {
       // This isn’t a dated directory.
       continue;
     } else {
This page took 0.022635 seconds and 4 git commands to generate.