Commit ae3f8cf9 by Serge Hallyn

Accept more word delimiters when updating hooks

When updating container names in hook files during a container clone, we substitute the new container name for the old any time the old name shows up as a separate word. This patch adds the four characters '.,_-' as additional delimiters. Signed-off-by: 's avatarSerge Hallyn <serge.hallyn@ubuntu.com>
parent 618fa49d
...@@ -1524,6 +1524,10 @@ static int is_word_sep(char c) ...@@ -1524,6 +1524,10 @@ static int is_word_sep(char c)
case '\t': case '\t':
case ' ': case ' ':
case '=': case '=':
case '.':
case ',':
case '_':
case '-':
case '/': case '/':
return 1; return 1;
default: return 0; default: return 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment