@apify/utilities 2.30.0 → 2.31.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/index.cjs +23 -0
- package/cjs/index.cjs.map +1 -1
- package/cjs/index.d.ts +5 -0
- package/esm/index.d.mts +5 -0
- package/esm/index.mjs +23 -0
- package/esm/index.mjs.map +1 -1
- package/package.json +2 -2
package/cjs/index.cjs
CHANGED
|
@@ -643,6 +643,29 @@ var FORBIDDEN_USERNAMES_REGEXPS = [
|
|
|
643
643
|
"(\\..*)",
|
|
644
644
|
// Username starting with xxx-
|
|
645
645
|
"(xxx-.*)",
|
|
646
|
+
// Usernames containing inappropriate/adult content keywords
|
|
647
|
+
"(.*porn.*)",
|
|
648
|
+
"(.*vagina.*)",
|
|
649
|
+
"(.*dildo.*)",
|
|
650
|
+
"(.*nsfw.*)",
|
|
651
|
+
"(.*hentai.*)",
|
|
652
|
+
"(.*cunt.*)",
|
|
653
|
+
"(.*fuck.*)",
|
|
654
|
+
"(.*shit.*)",
|
|
655
|
+
"(.*bitch.*)",
|
|
656
|
+
"(.*slut.*)",
|
|
657
|
+
"(.*whore.*)",
|
|
658
|
+
"(.*boob.*)",
|
|
659
|
+
"(.*tits.*)",
|
|
660
|
+
// Words that require non-letter boundaries to avoid false positives with
|
|
661
|
+
// legitimate surnames (Dickens, Hancock, Nudelman) and words (Uranus, pussycat, snaked)
|
|
662
|
+
"((.+[^a-z]|)cock([^a-z].+|))",
|
|
663
|
+
"((.+[^a-z]|)dick([^a-z].+|))",
|
|
664
|
+
"((.+[^a-z]|)anus([^a-z].+|))",
|
|
665
|
+
"((.+[^a-z]|)pussy([^a-z].+|))",
|
|
666
|
+
"((.+[^a-z]|)nude([^a-z].+|))",
|
|
667
|
+
"((.+[^a-z]|)penis([^a-z].+|))",
|
|
668
|
+
"((.+[^a-z]|)naked([^a-z].+|))",
|
|
646
669
|
// Username starting with install-cli. (see https://docs.apify.com/cli/docs/installation)
|
|
647
670
|
"(install-cli\\..*)",
|
|
648
671
|
// Strings not starting with letter or number
|