Skip to content

Commit

Permalink
Improve regular expression to validate NFS extra options.
Browse files Browse the repository at this point in the history
Signed-off-by: Volker Theile <votdev@gmx.de>
  • Loading branch information
votdev committed Jan 6, 2018
1 parent 7fcf7dd commit 9a583fe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -46,7 +46,7 @@
},
"extraoptions": {
"type": "string",
"pattern": "/^(\\w+[,])*\\w+$/"
"pattern": "/^(([a-zA-Z_]+)(=([\\w@:\\/]+))?[,])*([a-zA-Z_]+)(=([\\w@:\\/]+))?$/"
}
}
}
Expand Down
Expand Up @@ -31,7 +31,7 @@
},
"extraoptions": {
"type": "string",
"pattern": "/^(\\w+[,])*\\w+$/"
"pattern": "/^(([a-zA-Z_]+)(=([\\w@:\\/]+))?[,])*([a-zA-Z_]+)(=([\\w@:\\/]+))?$/"
}
}
}

0 comments on commit 9a583fe

Please sign in to comment.