Dear Epicor, it's time to abandon leading spaces as valid characters

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.

Done.

https://epicor-manufacturing.ideas.aha.io/ideas/KIN-I-3355

1 Like

Voted, I’d like to see the other special characters also included in the Idea not just a leading space.

1 Like

Awesome! I got a vote back sometime last week, so you got it for this idea. Thanks for creating it.

2 Likes

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.

star trek spock GIF

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;
    }
}
4 Likes

Seems ideas are the topic of the day.

If you care about saving sick puppies, please go vote. Don’t be heartless.

Animal Rescue Puppy GIF by The Dodo