]> git.mdlowis.com Git - projs/tide.git/commitdiff
use extended regexes for sed in bin/i-
authorMichael D. Lowis <mike@mdlowis.com>
Sat, 29 Dec 2018 02:26:57 +0000 (21:26 -0500)
committerMichael D. Lowis <mike@mdlowis.com>
Sat, 29 Dec 2018 02:26:57 +0000 (21:26 -0500)
bin/i-

diff --git a/bin/i- b/bin/i-
index 2644f96af63751f602a0d0fc5303ab2430c29127..470a5d27be4c69777698e20f581ccfbdc1b22547 100755 (executable)
--- a/bin/i-
+++ b/bin/i-
@@ -1,6 +1,6 @@
 #!/bin/sh
 case "$(lang "$file")" in
     ML|Python|Ruby)
-        sed 's/^\(     \?\| \? \?\)//g' "$@" ;;
-    *)  sed 's/^\(     \?\| \? \? \? \?\)//g' "$@" ;;
+        sed -E 's/^(   ?| ? ?)//g' "$@" ;;
+    *)  sed -E 's/^(   ?| ? ? ? ?)//g' "$@" ;;
 esac