@discordjs/builders 0.16.0-dev.1657757509-fe34f48 → 0.16.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/CHANGELOG.md +39 -0
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +8 -9
package/dist/index.mjs
CHANGED
|
@@ -701,7 +701,7 @@ __export(Assertions_exports5, {
|
|
|
701
701
|
});
|
|
702
702
|
import { s as s5 } from "@sapphire/shapeshift";
|
|
703
703
|
import { Locale } from "discord-api-types/v10";
|
|
704
|
-
var namePredicate = s5.string.lengthGreaterThanOrEqual(1).lengthLessThanOrEqual(32).regex(/^[\
|
|
704
|
+
var namePredicate = s5.string.lengthGreaterThanOrEqual(1).lengthLessThanOrEqual(32).regex(/^[\p{Ll}\p{Lm}\p{Lo}\p{N}\p{sc=Devanagari}\p{sc=Thai}_-]+$/u).setValidationEnabled(isValidationEnabled);
|
|
705
705
|
function validateName(name) {
|
|
706
706
|
namePredicate.parse(name);
|
|
707
707
|
}
|