File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -321,14 +321,14 @@ const FORBIDDEN_USERNAMES_REGEXPS = [
321321] ;
322322
323323// Regex matching forbidden usernames.
324- const FORBIDDEN_REGEXP = new RegExp ( `^(${ ANONYMOUS_USERNAME } |${ FORBIDDEN_USERNAMES_REGEXPS . join ( '|' ) } )$` , 'i' ) ;
324+ export const FORBIDDEN_USERNAME_REGEXP = new RegExp ( `^(${ ANONYMOUS_USERNAME } |${ FORBIDDEN_USERNAMES_REGEXPS . join ( '|' ) } )$` , 'i' ) ;
325325
326326/**
327327 * Checks whether username is listed in FORBIDDEN_USERNAMES
328328 * or matches any root route path.
329329 */
330330export function isForbiddenUsername ( username : string ) : boolean {
331- return ! ! username . match ( APIFY_ID_REGEX ) || ! ! username . match ( FORBIDDEN_REGEXP ) ;
331+ return ! ! username . match ( APIFY_ID_REGEX ) || ! ! username . match ( FORBIDDEN_USERNAME_REGEXP ) ;
332332}
333333
334334/**
You can’t perform that action at this time.
0 commit comments