[pve-devel] r5032 - pve-common/trunk

svn-commits at proxmox.com svn-commits at proxmox.com
Thu Aug 19 13:34:26 CEST 2010


Author: dietmar
Date: 2010-08-19 11:34:26 +0000 (Thu, 19 Aug 2010)
New Revision: 5032

Modified:
   pve-common/trunk/JSONSchema.pm
Log:
a regex can be anything - no need to check


Modified: pve-common/trunk/JSONSchema.pm
===================================================================
--- pve-common/trunk/JSONSchema.pm	2010-08-19 08:56:01 UTC (rev 5031)
+++ pve-common/trunk/JSONSchema.pm	2010-08-19 11:34:26 UTC (rev 5032)
@@ -29,6 +29,8 @@
 sub check_format {
     my ($format, $value) = @_;
 
+    return if $format eq 'regex';
+
     if ($format =~ m/^(.*)-list$/) {
 	
 	my $code = $format_list->{$1};




More information about the pve-devel mailing list