summary refs log tree commit diff
path: root/util
diff options
context:
space:
mode:
Diffstat (limited to 'util')
-rw-r--r--util/src/entities/Webhook.ts6
-rw-r--r--util/src/util/Regex.ts2
2 files changed, 4 insertions, 4 deletions
diff --git a/util/src/entities/Webhook.ts b/util/src/entities/Webhook.ts
index 12ba0d08..d0d98804 100644
--- a/util/src/entities/Webhook.ts
+++ b/util/src/entities/Webhook.ts
@@ -18,13 +18,13 @@ export class Webhook extends BaseClass {
 	@Column({ type: "simple-enum", enum: WebhookType })
 	type: WebhookType;
 
-	@Column({ nullable: true })
-	name?: string;
+	@Column()
+	name: string;
 
 	@Column({ nullable: true })
 	avatar?: string;
 
-	@Column({ nullable: true })
+	@Column({ nullable: true, select: false })
 	token?: string;
 
 	@Column({ nullable: true })
diff --git a/util/src/util/Regex.ts b/util/src/util/Regex.ts
index 83fc9fe8..b5d23b7f 100644
--- a/util/src/util/Regex.ts
+++ b/util/src/util/Regex.ts
@@ -1,5 +1,5 @@
 export const DOUBLE_WHITE_SPACE = /\s\s+/g;
-export const SPECIAL_CHAR = /[@#`:\r\n\t\f\v\p{C}]/gu;
+export const SPECIAL_CHAR = /[@#\r\n\t\f\v]/gu;
 export const CHANNEL_MENTION = /<#(\d+)>/g;
 export const USER_MENTION = /<@!?(\d+)>/g;
 export const ROLE_MENTION = /<@&(\d+)>/g;