Guarantee those are not the most basic terms, as “encoding” is a word I use… never.
But I’m poking fun, and the rest of your answer helped a lot.
Guarantee those are not the most basic terms, as “encoding” is a word I use… never.
But I’m poking fun, and the rest of your answer helped a lot.
Voted, I’d like to see the other special characters also included in the Idea not just a leading space.
Awesome! I got a vote back sometime last week, so you got it for this idea. Thanks for creating it.
I just ran across this today. Luckily it was in Customer Part Cross Reference.
Ugh, now I gotta see if I can fix it or work around it.
I will probably, one day, deploy something like this on a function and hook every Update pre-proc BPM to it.
Forget about blacklisting characters. Stick to a whitelist.
char[] allowedSymbols = { '/', '\\', ',', '.', '-', '#' };
//adjust as required. I'm not even sold on allowing "\"
for (int i = 0; i < Input.Length; i++)
{
if(i == 0 && !Char.IsLetterOrDigit(Input[i]))
{
Result = false; //I hate leading special characters.
return;
}
else if (!Char.IsLetterOrDigit(Input[i]) && !allowedSymbols.Contains(Input[i]))
{
Result = false;
return;
}
}
Seems ideas are the topic of the day.
If you care about saving sick puppies, please go vote. Don’t be heartless.