sgregoratto.me

source files for www.sgregoratto.me
git clone git://git.sgregoratto.me/sgregoratto.me
Log | Files | Refs

commit 4f4eb4d3e32dfb8b2520250be99584db21f0cc13
parent 9399eaa2a9305373cc0e2ed14fae2f6f19705ca4
Author: Stephen Gregoratto <dev@sgregoratto.me>
Date:   Sun,  8 Sep 2019 23:15:27 +1000

enforce lowercase filenames for new posts

Diffstat:
Mnew | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/new b/new @@ -23,6 +23,7 @@ $title = titlecase $ARGV[0]; $fname = $ARGV[0]; $fname =~ tr/A-Za-z0-9/-/cs; +$fname =~ tr/A-Z/a-z/; $fname .= ".xml"; open($postFile, '>', $fname)