Allow quick linking of PRs and issues
This commit is contained in:
+1
-1
@@ -20,7 +20,7 @@ export * from './oauth2';
|
||||
export * from './private-help-utils';
|
||||
export * from './record-utils';
|
||||
export * from './refresh-commands';
|
||||
export * from './search-regex';
|
||||
export * from './message-matcher-regex';
|
||||
export * from './string-utils';
|
||||
export * from './ticket-events';
|
||||
export * from './ticket-utils';
|
||||
|
||||
@@ -12,4 +12,7 @@ export const artistIDRegex = new RegExp('artist #([0-9]+)', 'gi');
|
||||
|
||||
const tagSearchRegex = '(?:[\\S]| )+?';
|
||||
export const wikiLinkRegex = new RegExp(`\\[\\[(${tagSearchRegex})]]`, 'gi');
|
||||
export const searchLinkRegex = new RegExp(`{{(${tagSearchRegex})}}`, 'gi');
|
||||
export const searchLinkRegex = new RegExp(`{{(${tagSearchRegex})}}`, 'gi');
|
||||
|
||||
export const prRegex = new RegExp('pr #([0-9]+)', 'gi');
|
||||
export const issueRegex = new RegExp('issue #([0-9]+)', 'gi');
|
||||
@@ -3,7 +3,7 @@ import { config } from '../config';
|
||||
import { Database } from '../shared/Database';
|
||||
import { Ticket, TicketPhrase, TicketUpdate } from '../types';
|
||||
import { PostAction, getE621Post, getE621User, spoilerOrBlacklist } from './e621-utils';
|
||||
import { blipIDRegex, commentIDRegex, forumTopicIDRegex, poolIDRegex, postIDRegex, recordIDRegex, searchLinkRegex, setIDRegex, takedownIDRegex, ticketIDRegex, userIDRegex, wikiLinkRegex } from './search-regex';
|
||||
import { blipIDRegex, commentIDRegex, forumTopicIDRegex, poolIDRegex, postIDRegex, recordIDRegex, searchLinkRegex, setIDRegex, takedownIDRegex, ticketIDRegex, userIDRegex, wikiLinkRegex } from './message-matcher-regex';
|
||||
import { humanizeCapitalization } from './string-utils';
|
||||
import { shouldAlert } from './ticket-utils';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user