Skip to content

Commit 568c7a8

Browse files
committed
allow metacharacters * and ? in sql file path
1 parent f226c7f commit 568c7a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

manifests/db.pp

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
# Ensure that the sql files passed are valid file paths.
7979
if $sql {
8080
$sql.each | $sqlfile | {
81-
if $sqlfile !~ /^\/(?:.[.A-Za-z0-9_-]+\/?+)+(?:\.[.A-Za-z0-9]+)+$/ {
81+
if $sqlfile !~ /^\/(?:.[.A-Za-z0-9_\-\?*]+\/?+)+(?:\.[.A-Za-z0-9]+)+$/ {
8282
$message = "The file '${sqlfile}' is invalid. A valid file path is expected."
8383
fail($message)
8484
}

0 commit comments

Comments
 (0)