SetLicenseKey - Default Key Format (Pattern) Validation Not Working Properly

Hello Cryptlex Team,

I would like to bring up a specific issue I’ve encountered while using lexactivator-js.

When calling LexActivator.SetLicenseKey(key) with a key that does not match the default format specified in the documentation (^([A-F0-9]{6}-){5}[A-F0-9]{6}$), my expectation is that LexActivator would throw the LA_E_LICENSE_KEY error.

However, during testing, I found that this error is not being triggered. Instead, keys like ++++++++++ (or any other 10-character combination) are being accepted as valid in terms of format.

Is this behavior intentional, or is it a bug?

Although I can perform my own validation before invoking SetLicenseKey, I would like to confirm that LexActivator is functioning as intended.

Thank you for your assistance.

Hi @luka ,

Thank you for reaching out!

The license key format is not part of the validation process. LexActivator only validates the character length, which must be minimum 10 characters.

1 Like