Skip to content
This repository was archived by the owner on Oct 8, 2024. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion ghec-audit-log-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,14 @@ function validateInput (program, config) {

// Validate correctness
const tokenRegex = /^[g(p|o|u|s|r)1_]{0,1}[A-Za-z0-9_]+$/
const cursorRegex = /^[a-zA-Z0-9]{3,5}_[a-zA-Z0-9]+$/
const base64Regex = /^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will remain then unused with this change right?

const orgRegex = /^[a-z\d]+(?:-?[a-z\d]+)*$/i
const constraints = {
cursor: {
type: 'string',
presence: false,
format: base64Regex
format: cursorRegex
},
pretty: {
type: 'boolean',
Expand Down