diff options
author | Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> | 2021-09-16 20:49:07 +0200 |
---|---|---|
committer | Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> | 2021-09-16 20:49:07 +0200 |
commit | d2d7dd0561e9ccfbf68caccafffa114a45b29fc0 (patch) | |
tree | cdfd1b028348ecadd53b4d3b1a77c5f117e446aa /util | |
parent | Merge branch 'master' of https://github.com/fosscord/fosscord-api (diff) | |
download | server-d2d7dd0561e9ccfbf68caccafffa114a45b29fc0.tar.xz |
Revert ":construction: webhook"
This reverts commit df2b83ac158be1e7233d8edce59033c15c193599.
Diffstat (limited to 'util')
-rw-r--r-- | util/src/entities/Webhook.ts | 6 | ||||
-rw-r--r-- | util/src/util/Regex.ts | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/util/src/entities/Webhook.ts b/util/src/entities/Webhook.ts index d0d98804..12ba0d08 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() - name: string; + @Column({ nullable: true }) + name?: string; @Column({ nullable: true }) avatar?: string; - @Column({ nullable: true, select: false }) + @Column({ nullable: true }) token?: string; @Column({ nullable: true }) diff --git a/util/src/util/Regex.ts b/util/src/util/Regex.ts index b5d23b7f..83fc9fe8 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]/gu; +export const SPECIAL_CHAR = /[@#`:\r\n\t\f\v\p{C}]/gu; export const CHANNEL_MENTION = /<#(\d+)>/g; export const USER_MENTION = /<@!?(\d+)>/g; export const ROLE_MENTION = /<@&(\d+)>/g; |