-
-
Notifications
You must be signed in to change notification settings - Fork 115
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add: Readme, rubygems, scalingo, sendinblue, shippo
- Loading branch information
Showing
8 changed files
with
194 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
// keyshade-ignore-all | ||
import type { TestCase }from '@/types' | ||
|
||
export default function readme(): RegExp[] { | ||
return [ | ||
// Readme API Key regex | ||
/rdme_[a-z0-9]{70}/ | ||
] | ||
} | ||
|
||
const testcase: TestCase[] = [ | ||
{ | ||
input: 'rdme_gmof25sb3fpcxljii5qvo1bqm7bartk9plo3r1yzus98rp1r7m6ljbn6wca140bra0luib', | ||
expected: true | ||
}, | ||
{ | ||
input: 'rdme_5the1frp29hldpuswj1qxczbk5w2m5hxza48zwi3mvppjr9w4fjqzed74znqvd2sku3c3h', | ||
expected: true | ||
}, | ||
{ | ||
input: 'rdme_', | ||
expected: false | ||
}, | ||
{ | ||
input: 'README', | ||
expected: false | ||
} | ||
] | ||
|
||
readme.testcases = testcase |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
// keyshade-ignore-all | ||
import type { TestCase }from '@/types' | ||
|
||
export default function rubygems(): RegExp[] { | ||
return [ | ||
// Ruby Gems API Key regex | ||
/rubygems_[a-f0-9]{48}/ | ||
] | ||
} | ||
|
||
const testcase: TestCase[] = [ | ||
{ | ||
input: 'rubygems_fb6bff4ec114a74a96c4cd82bd34969fbc7873b15f4a0465', | ||
expected: true | ||
}, | ||
{ | ||
input: 'rubygems_afff37f44056352348e9b97b33315e55792c0680841ba6bd', | ||
expected: true | ||
}, | ||
{ | ||
input: 'rubygems_', | ||
expected: false | ||
}, | ||
{ | ||
input: 'RubyGems', | ||
expected: false | ||
} | ||
] | ||
|
||
rubygems.testcases = testcase |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
// keyshade-ignore-all | ||
import type { TestCase }from '@/types' | ||
|
||
export default function scalingo(): RegExp[] { | ||
return [ | ||
// Scalingo API Key regex | ||
/tk-us-[a-zA-Z0-9-_]{48}/ | ||
] | ||
} | ||
|
||
const testcase: TestCase[] = [ | ||
{ | ||
input: 'tk-us-TPdFpIyuvXJLQytNSugN3RBeN0YYLed3ib1b7uJiPqk_XAws', | ||
expected: true | ||
}, | ||
{ | ||
input: 'tk-us-h0rx7zIiaoFsmloQDcfCdkhaAljG9QjQRkmuF894qCCnp4XX', | ||
expected: true | ||
}, | ||
{ | ||
input: 'tk-us-', | ||
expected: false | ||
}, | ||
{ | ||
input: 'Scalingo', | ||
expected: false | ||
} | ||
] | ||
|
||
scalingo.testcases = testcase |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
// keyshade-ignore-all | ||
import type { TestCase }from '@/types' | ||
|
||
export default function sendinblue(): RegExp[] { | ||
return [ | ||
// SendInBlue API Key regex | ||
/xkeysib-[a-f0-9]{64}-[a-z0-9]{16}/i | ||
] | ||
} | ||
|
||
const testcase: TestCase[] = [ | ||
{ | ||
input: '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', | ||
expected: true | ||
}, | ||
{ | ||
input: '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', | ||
expected: true | ||
}, | ||
{ | ||
input: 'xkeysib-', | ||
expected: false | ||
}, | ||
{ | ||
input: 'SENDINBLUE', | ||
expected: false | ||
} | ||
] | ||
|
||
sendinblue.testcases = testcase |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
// keyshade-ignore-all | ||
import type { TestCase }from '@/types' | ||
|
||
export default function shippo(): RegExp[] { | ||
return [ | ||
// Shippo API Key regex | ||
/shippo_(live|test)_[a-f0-9]{40}/i | ||
] | ||
} | ||
|
||
const testcase: TestCase[] = [ | ||
{ | ||
input: 'shippo_test_db8536f152f40910e83640bc9567783f3ac7965f', | ||
expected: true | ||
}, | ||
{ | ||
input: 'shippo_live_e844246554cebd546a8b2cce0aad583992368c82', | ||
expected: true | ||
}, | ||
{ | ||
input: 'shippo_', | ||
expected: false | ||
}, | ||
{ | ||
input: 'Shippo', | ||
expected: false | ||
} | ||
] | ||
|
||
shippo.testcases = testcase |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters