Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

completion: Remove Number or other chars at beginning of variable name #613

Open
f4n0 opened this issue Sep 19, 2024 · 0 comments
Open

completion: Remove Number or other chars at beginning of variable name #613

f4n0 opened this issue Sep 19, 2024 · 0 comments

Comments

@f4n0
Copy link
Contributor

f4n0 commented Sep 19, 2024

Hi,
I have objects names like that "" like "EOS001 Customer List".
when using the variable snippet it will successfully trim the prefix but obviously not the AppCode.
unfortunately, the AL compiler will throw this error:
' 001 .' is not valid value in this context.AL(AL0519)

using this regex, it will trim the digits or dots at the beginning of a string, and it will create a compliant variable name
/^(\d|.)+/gm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants