-------------------------------------------------------------------
Fri May 5 10:25:10 IST 2006 - smanojna@novell.com - Description: Bug 165283: CASA docs and About screen states that CASA runs on Mac OSX which does not currently. - Modified files: package/linux/CASA.spec.in -------------------------------------------------------------------
This commit is contained in:
@@ -61,13 +61,16 @@ public class Common
|
||||
|
||||
public static int MAX_LEN = 512;
|
||||
|
||||
//static Char[] SpecialCharacters = new Char[]{ '*' };
|
||||
|
||||
static Char[] SpecialCharacters = new Char[]{ '`', '~', '@', '#', '$', '%',
|
||||
'^', '&', '*', '(', ')',
|
||||
'_', '=', '+', '|', '\\',
|
||||
'{', '}', '[', ']', ':',
|
||||
';', '\"', '\'', '<', '>',
|
||||
',', '.', '?', '/', '!'};
|
||||
|
||||
|
||||
|
||||
///##############################################################
|
||||
/// SPI CONSTANTS
|
||||
///
|
||||
@@ -399,17 +402,10 @@ public class Common
|
||||
/// </summary>
|
||||
public static bool ValidateString(string sString)
|
||||
{
|
||||
Console.WriteLine("ValidateString(): " + sString);
|
||||
if( -1 == sString.IndexOfAny(SpecialCharacters) )
|
||||
{
|
||||
//Console.WriteLine("VS: true");
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
//Console.WriteLine("VS: false");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user