We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab8f5a0 commit db478feCopy full SHA for db478fe
test/cases/tokenUtils.ts
@@ -3,10 +3,11 @@ import { config } from "../../src/config";
3
import axios from "axios";
4
import * as tokenUtils from "../../src/utils/tokenUtils";
5
import MockAdapter from "axios-mock-adapter";
6
-import { validatelicenseKeyRegex } from "../../src/routes/verifyToken";
7
let mock: MockAdapter;
8
9
-const validateToken = validatelicenseKeyRegex;
+const validateToken = (token: string) =>
+ new RegExp(/[A-Za-z0-9]{40}|[A-Za-z0-9-]{35}/).test(token);
10
+
11
const fakePatreonIdentity = {
12
data: {},
13
links: {},
0 commit comments