vinshuka / Cobol-Pretty-Headers

MIT License
1 stars 1 forks source link

fix variable name generation #5

Open GitMensch opened 3 years ago

GitMensch commented 3 years ago

The README.md actually shows the issue, because of the generation of a variable with the name Cobol!-HDR. You may want to apply a regex or otherwise filter out/replace any "content" when building the variable name. Valid in all compilers is [a-ZA-Z][a-ZA-Z0-9_-]*[a-ZA-Z0-9].

vinshuka commented 3 years ago

Just to clarify the issue is the inclusion of the '!' character in the variable name?

GitMensch commented 3 years ago

Yes, the same would happen with a lot of other "special" chars or with a leading non-alphabetic (a-z).