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
258258 tag_name="$2"
259259 tag_value="$3"
260260 expr_match="@${tag_name}"
261− expr_match_opt="[{]${expr_match}\([^}]*\)[}]"
261+ expr_match_opt="[{]\([^}{]*\)${expr_match}\([^}]*\)[}]"
262262
263263 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" \
265265 || sed "s/${expr_match_opt}//g;s/${expr_match}//g"; }
266266 }
267267

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