Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change "Surian" to "Suroian" #373

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion client/src/scripts/news/newsPosts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ Special thanks to Leia and platonthek. This update wouldn't have been possible w

There are also two new Austrian arrivals to the island. Like the Micro Uzi but want something that packs more of a punch? The Steyr AUG might be for you. If you prefer a challenge, grab the all-new full auto pistol, the CZ-75A.<br><br>

Surians can now customize their skins, and express themselves with emotes too! Everything is unlocked until accounts are added.`,
Suroians can now customize their skins, and express themselves with emotes too! Everything is unlocked until accounts are added.`,
longContent: `<h2>Suroi v0.9.0</h2>

<h3>New features & changes</h3>
Expand Down
2 changes: 1 addition & 1 deletion common/src/definitions/guns.ts
Original file line number Diff line number Diff line change
Expand Up @@ -682,7 +682,7 @@ export const Guns = ObjectDefinitions.create<GunDefinition>()(
idString: "barrett",
name: "Barrett M95",
ammoType: "127mm",
ammoSpawnAmount: 20,
ammoSpawnAmount: 25,
capacity: 5,
reloadTime: 3.4,
fireDelay: 1400,
Expand Down
15 changes: 7 additions & 8 deletions server/src/utils/usernameFilter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,13 @@
import { Config } from "../config";

const badWordRegexes: RegExp[] = [
/n[i1l!|\\/(){}[\]]+[g693]+[e3]*[ra@]*/i, // N word
/f[a@4]+[g9]+[s$5z2]+[ao0]+[t+]*/i, // F slur
/n[a@4]+z[i1]+[s$5z2]*/i, // Nazi references
/a[d]+[o0]+[/|l1]+[f]+(\s|\W|_)*h[/|!i1]+[t]+[/|!l1]+[e3]+[r]+/i, // Hitler
/(?=.*k[i1]+[l1]+[l1]*)(?=.*j[e3]+[w]+[s$5z2]*)/i // Antisemitist stuff
// FIXME too broad, matches "rap"
// sounds like that * at the end should be a + then
/// (?=.*m[o0]+[l1]+[e3]+[s$5z2]+[t+]*)|(?=.*r[a@4]+[p]+[e3]*)/i // Molest and rape
/([nNhH]|[\|Il!\(\)\[\]]*[\\\/]+[\|Il!\(\)\[\]]*|[\|Il!\(\)\[\]]*[vV]+[\|Il!\(\)\[\]]*)+[iI!1\|\\\/?\*jeE€3£]+[kKgG369&£]+[eE€£3]*[rRaA@4]+/, // N word

Check failure on line 5 in server/src/utils/usernameFilter.ts

View workflow job for this annotation

GitHub Actions / Lint

Unnecessary escape character: \|

Check failure on line 5 in server/src/utils/usernameFilter.ts

View workflow job for this annotation

GitHub Actions / Lint

Unnecessary escape character: \(

Check failure on line 5 in server/src/utils/usernameFilter.ts

View workflow job for this annotation

GitHub Actions / Lint

Unnecessary escape character: \)

Check failure on line 5 in server/src/utils/usernameFilter.ts

View workflow job for this annotation

GitHub Actions / Lint

Unnecessary escape character: \[

Check failure on line 5 in server/src/utils/usernameFilter.ts

View workflow job for this annotation

GitHub Actions / Lint

Unnecessary escape character: \/

Check failure on line 5 in server/src/utils/usernameFilter.ts

View workflow job for this annotation

GitHub Actions / Lint

Unnecessary escape character: \|

Check failure on line 5 in server/src/utils/usernameFilter.ts

View workflow job for this annotation

GitHub Actions / Lint

Unnecessary escape character: \(

Check failure on line 5 in server/src/utils/usernameFilter.ts

View workflow job for this annotation

GitHub Actions / Lint

Unnecessary escape character: \)

Check failure on line 5 in server/src/utils/usernameFilter.ts

View workflow job for this annotation

GitHub Actions / Lint

Unnecessary escape character: \[

Check failure on line 5 in server/src/utils/usernameFilter.ts

View workflow job for this annotation

GitHub Actions / Lint

Unnecessary escape character: \|
/f[a@4]+[g9]+[s$5z2]+[ao0]+[t+]*/i, // F slur
/n[a@4]+z[i1]+[s$5z2]*/i, // Nazi references
/a[d]+[o0]+[/|l1]+[f]+(\s|\W|_)*h[/|!i1]+[t]+[/|!l1]+[e3]+[r]+/i, // Hitler
/(?=.*k[i1]+[l1]+[l1]*)(?=.*j[e3]+[w]+[s$5z2]*)/i, // Antisemitist stuff
// likely fixed now, please check and remove the following line if still broken
/(?=.*m[o0]+[l1]+[e3]+[s$5z2]+[t+]*)|(?=.*r[a@4]+[p]+[e3]+[\s\S]*r[a@4]+[p]+[e3])/i // Molest and rape lets the name rap go
];

export function cleanUsername(name?: string | null): string {
Expand Down
Loading