mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-03-13 21:33:22 +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() {
|
||||
local message="$1"
|
||||
local flags=("${@:2}")
|
||||
|
||||
local regex=$(IFS="|"; echo "${_git_commit_flags[*]}")
|
||||
|
||||
message=$(sed -E "s/\s($regex)\s|\s($regex)$//g" <<< "$message")
|
||||
|
||||
echo "$message"
|
||||
echo $(sed -E "s/\s($regex)\s|\s($regex)$//g" <<< "$1")
|
||||
};
|
||||
|
||||
build_message () {
|
||||
|
|
Loading…
Add table
Reference in a new issue