History

allow optional tags with extra text inside curly brackets. Fixes #6

Serge Zirukin committed 13 years ago

Commit a50f8f51 parent 68823c11 file · +2 −2Browse files

Unified · Split

split2flac+2−2
@@ -258,10 +258,10 @@ update_pattern_aux () { · 257 unmodified lines
258 tag_name="$2"258 tag_name="$2"
259 tag_value="$3"259 tag_value="$3"
260 expr_match="@${tag_name}"260 expr_match="@${tag_name}"
261 expr_match_opt="[{]${expr_match}\([^}]*\)[}]"261 expr_match_opt="[{]\([^}{]*\)${expr_match}\([^}]*\)[}]"
262 262
263 echo "$1" | { [ "${tag_value}" ] \263 echo "$1" | { [ "${tag_value}" ] \
264 && sed "s/${expr_match_opt}/${tag_value}\1/g;s/${expr_match}/${tag_value}/g" \264 && sed "s/${expr_match_opt}/\1${tag_value}\2/g;s/${expr_match}/${tag_value}/g" \
265 || sed "s/${expr_match_opt}//g;s/${expr_match}//g"; }265 || sed "s/${expr_match_opt}//g;s/${expr_match}//g"; }
266}266}
267 267

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t