From 62996cf88e33970d39082bfc93e0ef0f3cc06512 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Wed, 16 Apr 2008 19:46:35 +0000 Subject: [PATCH] Add capability to cram an sprintf to modify regex arithmetic operation git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@1104 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- perl-xCAT-2.0/xCAT/Table.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/perl-xCAT-2.0/xCAT/Table.pm b/perl-xCAT-2.0/xCAT/Table.pm index bd971e526..4d51e040f 100644 --- a/perl-xCAT-2.0/xCAT/Table.pm +++ b/perl-xCAT-2.0/xCAT/Table.pm @@ -944,7 +944,7 @@ sub getNodeAttribs { #my $next = $comps[0]; - if ($curr =~ /^[\{\}()\-\+\/\%\*\$\d]+$/) + if ($curr =~ /^[\{\}()\-\+\/\%\*\$\d]+$/ or $curr =~ /^\(sprintf\(["%\dcsduoxefg]+,\s*[\{\}()\-\+\/\%\*\$\d]+\)\)$/ ) { use integer ; #We only allow integer operations, they are the ones that make sense for the application