Ensure validate_cmd is a string and fail explicitly otherwise.
This commit is contained in:
parent
561935586d
commit
09a01d8087
1 changed files with 3 additions and 0 deletions
|
@ -82,6 +82,9 @@ define concat(
|
||||||
validate_bool($replace)
|
validate_bool($replace)
|
||||||
validate_re($order, '^alpha$|^numeric$')
|
validate_re($order, '^alpha$|^numeric$')
|
||||||
validate_bool($ensure_newline)
|
validate_bool($ensure_newline)
|
||||||
|
if $validate_cmd and ! is_string($validate_cmd) {
|
||||||
|
fail('$validate_cmd must be a string')
|
||||||
|
}
|
||||||
if $gnu {
|
if $gnu {
|
||||||
warning('The $gnu parameter to concat is deprecated and has no effect')
|
warning('The $gnu parameter to concat is deprecated and has no effect')
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue