mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-06 02:51:32 +01:00
style: not used
This commit is contained in:
parent
48b36d5bb2
commit
b0b16e7cea
1 changed files with 1 additions and 6 deletions
|
|
@ -24,14 +24,9 @@ _git_commit_flags=(
|
||||||
)
|
)
|
||||||
|
|
||||||
remove_flags() {
|
remove_flags() {
|
||||||
local message="$1"
|
|
||||||
local flags=("${@:2}")
|
|
||||||
|
|
||||||
local regex=$(IFS="|"; echo "${_git_commit_flags[*]}")
|
local regex=$(IFS="|"; echo "${_git_commit_flags[*]}")
|
||||||
|
|
||||||
message=$(sed -E "s/\s($regex)\s|\s($regex)$//g" <<< "$message")
|
echo $(sed -E "s/\s($regex)\s|\s($regex)$//g" <<< "$1")
|
||||||
|
|
||||||
echo "$message"
|
|
||||||
};
|
};
|
||||||
|
|
||||||
build_message () {
|
build_message () {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue