Skip to content

Commit

Permalink
Fix: npm key regex testcase
Browse files Browse the repository at this point in the history
  • Loading branch information
Sambit003 committed Sep 16, 2024
1 parent eb5c20e commit 472e9cb
Show file tree
Hide file tree
Showing 11 changed files with 4 additions and 4 deletions.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
8 changes: 4 additions & 4 deletions packages/secret-scan/src/rules/npm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,20 +31,20 @@ const testcase: TestCase[] = [
{
input:
'//registry.npmjs.org:_authToken=743b294a-cd03-11ec-9d64-0242ac120002',
expected: false
expected: true
},
{
input:
'registry.npmjs.org/:_authToken=743b294a-cd03-11ec-9d64-0242ac120002',
expected: false
expected: true
},
{
input: '///:_authToken=743b294a-cd03-11ec-9d64-0242ac120002',
expected: false
expected: true
},
{
input: '_authToken=743b294a-cd03-11ec-9d64-0242ac120002',
expected: false
expected: true
},
{
// eslint-disable-next-line no-template-curly-in-string
Expand Down

0 comments on commit 472e9cb

Please sign in to comment.