-
Notifications
You must be signed in to change notification settings - Fork 106
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
while tag is "Ver.motoer.I" ,error Tag is not string #17
Comments
Can you provide more details surrounding the issue you are having? Code snippet, error screenshot, etc. Thanks! |
Microsoft Windows [版本 6.1.7601] C:\Users\Administrator>cd F:\PLCgate C:\Users\Administrator>f: F:\PLCgate>node dts.js Error: Tagname Must be of Type PLC.subscribe(new Tag("VersaRoll.VRoll.I"); |
Can you post the entire contents of your |
Also, please post the results of ``` gets rendered as
|
tag.js /RegExp cannot match tha tag name while the last only is one letter |
* Fix tag regex to allow 1-character tag names Fix for #17 * adds a test for 1-characters numeric tag names * Increments version
@nuannuande, @patrickjmcd released a patch to help you with your issue, have you been able to test it? you should be able to update to the latest version with We still have an issue when referencing a boolean via bit level specification that will be addressed at a later time (this is being tracked at #19). |
src/tag.js
const regex = /^[a-zA-Z_][a-zA-Z0-9_]*([a-zA-Z0-9_]|[\d+])$/i;
Current Behavior
Expected Behavior
Possible Solution (Optional)
Context
Steps to Reproduce (for bugs only)
Your Environment
npm list
- e.g. 1.0.6):node --version
- e.g. 9.8.0):The text was updated successfully, but these errors were encountered: