shithub: misc

Download patch

ref: 0fbc9c2d198923bf95eaa5daa32a7ecf61dcae6e
parent: 765c104f7a15d8a2d82288e581a9872310b1045c
author: qwx <qwx@sciops.net>
date: Wed Jul 5 17:57:55 EDT 2023

werc/ls app: fix listings with underscores

--- a/werc/ls/app.rc
+++ b/werc/ls/app.rc
@@ -15,6 +15,6 @@
 		echo '<a href="../">..</a><br>'
 	}
 	echo '<table border="0"><tr><th>size<th>last modified<th>name</tr>'
-	ls -Fl $sitedir$d | sed $dirclean'/_werc/d;/index/d;s/^[^ ]+ [^ ]+ [^ ]+ [^ ]+ [^ ]+ +//;s/^([^ ]+) (.*) [^ ]+\/([^''\/\* ]+\/?)''?(\*?)$/<tr><td>\1<td>\2<td><a href="\3">\3\4<\/a><\/tr>/'
+	ls -Fl $sitedir$d | sed $dirclean'/_werc/d;/[\/ 	]_/d;/index/d;s/^[^ ]+ [^ ]+ [^ ]+ [^ ]+ [^ ]+ +//;s/^([^ ]+) (.*) [^ ]+\/([^''\/\* ]+\/?)''?(\*?)$/<tr><td>\1<td>\2<td><a href="\3">\3\4<\/a><\/tr>/'
 	echo '</table></ul>'
 }