We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9e413c7 commit 6797de0Copy full SHA for 6797de0
1 file changed
src/utils/Utils.js
@@ -1,4 +1,5 @@
1
const crypto = require('crypto');
2
+const Validator = require('./Validator');
3
4
class Utils {
5
static validateEmail(email) {
@@ -7,7 +8,12 @@ class Utils {
7
8
}
9
10
static validateLicenseKey(licenseKey) {
- return licenseKey.length === 32 && /^[A-Z0-9]+$/.test(licenseKey);
11
+ try {
12
+ Validator.validateLicenseKey(licenseKey);
13
+ return true;
14
+ } catch {
15
+ return false;
16
+ }
17
18
19
static validateUuid(uuid) {
0 commit comments