aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFuwn <[email protected]>2023-09-21 15:15:35 -0700
committerFuwn <[email protected]>2023-09-21 15:15:45 -0700
commitc4ce9229eee6beff309e945834b4bc97a2a0aa21 (patch)
treefcb4447e326836ece4b6e327ce849eb0c3a85a9b
parentrefactor(suzuri): use constants (diff)
downloadsuzuri-c4ce9229eee6beff309e945834b4bc97a2a0aa21.tar.xz
suzuri-c4ce9229eee6beff309e945834b4bc97a2a0aa21.zip
feat(suzuri): regex mode
-rwxr-xr-xsuzuri2
1 files changed, 1 insertions, 1 deletions
diff --git a/suzuri b/suzuri
index ff95906..0b63642 100755
--- a/suzuri
+++ b/suzuri
@@ -43,7 +43,7 @@ if [[ -n "${SUZURI_REVERSE}" ]]; then
fi
if [[ -n "${SUZURI_MINIMAL}" ]]; then
- body="$(echo "${body}" | grep "##" | sed "s/##//" || true)"
+ body="$(echo "${body}" | grep -oP '^##\K.*' | sed "s/##//" || true)"
fi
if [[ -n "${SUZURI_RAW}" ]]; then