From 733a772edb92e47edd991af669c3da8807acb706 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Mon, 4 Jul 2016 00:00:37 +1200 Subject: Prevent zs(6) from making "zs" into "zzs" --- games/zs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'games') diff --git a/games/zs b/games/zs index 4a36f99a..728156ba 100755 --- a/games/zs +++ b/games/zs @@ -1,5 +1,8 @@ #!/bin/sed -f # Prepend z appropriately to occurrences of s, in order to make fun of bezrend -s,s,zs,g -s,S\([a-z]\),Zs\1,g -s,S,ZS,g +s,^s,zs,g +s,^S\([a-z]\),Zs\1,g +s,^s,ZS,g +s,\([^zZ]\)s,\1zs,g +s,\([^zZ]\)S\([a-z]\),\1Zs\2,g +s,\([^zZ]\)S,\1ZS,g -- cgit v1.2.3