-
Notifications
You must be signed in to change notification settings - Fork 1
/
regexConstants.ts
37 lines (36 loc) · 4.79 KB
/
regexConstants.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// /i means case-insensitive, \b are word borders
export const cusAutoReplyRegex = /This inbox is monitored 8:30am - 5pm, Monday through Friday.(.*)AMAZON ECHO, ETC.\)\*\*(.*?)phone: 503-777-7525/s
export const googleDriveRegexList = [/google drive/i, /drive request/i, /google form/i, /shared drive/i]
export const noGoogleDriveRegexList = []
export const googleGroupRegexList = [/google group/i, /@groups.google/, /group request/i, /external users to that group/i]
export const noGoogleGroupRegexList = []
export const hardwareRegexList = [/iMac/, /hardware store/i, /hardware shop/i, /macbook pro replacement/i, /System Model:/, /System Name:/, /System Manufacturer:/, /CUS Computer Maintenance Required/i, /tracking down/i, /buy-back/i, /reed equipment/i, /adapter/i, /usb-c/i, /usbc/i, /HDMI/i, /thunderbolt/i, /vga/i, /\bdvi\b/i, /won't turn on/i, /asset number/i, /monitor/i, /camera/i, /microphone/i]
export const noHardwareRegexList = []
export const libraryRelatedRegexList = [/e-book/i, /library/i, /librarian/i, /IMC/, /LangLab/i]
export const noLibraryRelatedRegexList = []
export const massEmailRegexList = [/release email/i, /release message/i, /groups.reed.edu admins: Message Pending/, /mass email/i, /approve(.*)Newsletter/i, /message(.*)release/i, /released/i, /approve email/i, /approve the email/i, /approved the email/i, /release this message/i]
export const noMassEmailRegexList = []
export const microsoftRegexList = [/microsoft/i, /powerpoint/i, /\bexcel\b/i, /Word/, /\bmacro\b/i, /.doc\b/, /.docx\b/, /ppt\b/, /pptx\b/] //got rid of /Office/ cuz Office of the Registrar etc can be in signatures, /csv/, /.xl/ cuz csv could be attached and it's totally unrelated, etc
export const noMicrosoftRegexList = [/template/i] //word thesis template issues are NOT microsoft tag
export const networkRegexList = [/wifi/i, /ethernet/i, /connection issue/i, /reed1x/i, /fluke/i, /MAC/, /mac address/i, /network/i, /\bdns\b/i, /trouble connect/i, /issues accessing/i, /alexa/i, /netreg/i, /xenia/, /wireless maint/i, /smart-devices/, /authentication s/, /atlas is down/i, /cis\/status\//] ///([a-z0-9]+[.])*reed[.]edu/i removed this, too ambig. ie account-tools.reed.edu is clearly password reset only.
export const noNetworkRegexList = [/groups.reed.edu/]
export const passwordResetRegexList = [/password reset/i, /forgot password/i, /kerberos pass/i, /account-tools/] //can't use just "password" cuz ben's signature is "cis will never ask for ur password" AND it'd conflict w "Software" tag looking for 1password
export const noPasswordResetRegexList = []
export const phishRegexList = [/phish/i, /scam/i, /spam/i]
export const noPhishRegexList = [/Security Updates for Reed Computers/]
export const printingRegexList = [/print/i, /ipp.reed.edu/, /xerox/i, /ctx/i, /laserjet/i, /toner/i]
export const noPrintingRegexList = [/print barcode/i, /small print/i]
export const reedAccountsRegexList = [/new employee/i, /kerberos/i, /vpn/i, /dlist/i, /delegate/i, /setup your Reed account/i, /claim your Reed account/i, /account creation/i, /listserv/i, /accounts are scheduled to be closed/i, /reed computing accounts/i, /account tool/i, /online_forms\/protected\/computing.php/, /account_closing/, /auth group/i, /access IRIS/, /computing account/i, /[email protected]/, /blackboard/i]
export const noReedAccountsRegexList = []
export const softwareRegexList = [/1password/i, /one-password/i, /onepassword/i, /OS update/i, /OS upgrade/i, /kernel/i, /adobe/i, /acrobat/i, /photoshop/i, /creative cloud/i, /premiere pro/i, /lightroom/i, /indesign/i, /CS6/, /dreamweaver/i, /premiere rush/i, /code42/i, /crash/i, /Upgrade NOT Recommended/, /Monterey/i, /RStudio/i, /mathematica/i, /wolfram/i, /medicat/i, /big sur/i, /catalina/i, /mojave/i, /high sierra/i, /operating system/i, /\bvlc\b/i, /quicktime/i, /zotero/i, /latex/i, /stata/i, /filemaker/i, /vmware/i, /software update/i, /software upgrade/i, /uninstall/i, /matlab/i, /force quit/i, /splashtop/i, /license/i] //removed /\bdriver\b/i
export const noSoftwareRegexList = []
export const thesisRegexList = [/thesis/i] //[/thesis format/i, /thesis template/i, /thesis word template/i, /r template/i]
export const noThesisRegexList = [/vpn/i]
export const twoFactorRegexList = [/duo/i, /twostep/i, /two-step/i, /hardware token/i]
export const noTwoFactorRegexList = []
export const nameChangeRegexList = [/name change/i, /change name/i]
export const noNameChangeRegexList = []
export const virusMalwareRegexList = [/falcon/i, /crowdstrike/i, /virus/i, /malware/i, /malicious/i, /trojan/i]
export const noVirusMalwareRegexList = [/Security Updates for Reed Computers/]
export const noTagRegexList = [/Events & Programs Newsletter for Reed Students/, /To:(.*)[email protected]/, /To:(.*)[email protected]/, /Dorkbot Monthly/, /Banner Database Outage/, /To:(.*)[email protected]/, /[email protected]/]
export const noNoTagRegexList = []