diff --git a/Foundation/CPString.j b/Foundation/CPString.j index 18270f307..e70459789 100644 --- a/Foundation/CPString.j +++ b/Foundation/CPString.j @@ -467,8 +467,8 @@ whitespace characters, +,- followed by Zeroes. */ - (BOOL)boolValue { - aString = self.replace(/^\s+[\+,-]*0*/,""); - if(aString.match(/[Y,y,t,T,[1-9]/) != null) + var aString = self.replace(/^\s+[\+,-]*0*/,""); + if (aString.match(/[Y,y,t,T,[1-9]/) != null) return YES; return NO; }