Skip to content

Commit

Permalink
filters: clean-version: Fix regular expression pattern to exclude quo…
Browse files Browse the repository at this point in the history
…ting

The previous pattern failed to match version line which is quoted by quotes(src/woeusb, manapages), this patch updates the pattern to exclude any quoting.

Signed-off-by: 林博仁 <[email protected]>
  • Loading branch information
brlin-tw committed Nov 12, 2017
1 parent b4888d2 commit fa36514
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion filters/clean-version.bash
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ init(){

sed\
--regexp-extended\
's/[0-9]+\.[0-9]+\.[0-9]+[^)]*/@@WOEUSB_VERSION@@/'
"s/[0-9]+\.[0-9]+\.[0-9]+[^)\"']*/@@WOEUSB_VERSION@@/"
exit 0
}; declare -fr init

Expand Down

0 comments on commit fa36514

Please sign in to comment.