regexing as God Intended
Deploy / deploy (push) Successful in 3s

This commit is contained in:
0xa0
2026-07-22 16:40:04 +02:00
parent 3a96bc8f25
commit d4901ec329
+4 -1
View File
@@ -1,4 +1,7 @@
<?php $build = trim((string) @file_get_contents(__DIR__ . '/../build.txt')) ?: 'dev'; ?>
<?php
$build = trim((string) @file_get_contents(__DIR__ . '/../build.txt'));
$build = preg_match('/[0-9a-f]{7,40}/i', $build, $m) ? $m[0] : ($build ?: 'dev');
?>
<?php require_once __DIR__ . '/buttons.php'; ?>
</main>
<footer>