API reference
Method ApplicationCommandNameRegex
- Namespace
- DisCatSharp.Common.RegularExpressions
- Assembly
- DisCatSharp.Common.dll
ApplicationCommandNameRegex()
[GeneratedRegex("^[\\p{Ll}\\p{Lt}\\w_'-]{1,32}$", RegexOptions.Compiled|RegexOptions.ECMAScript)]
public static Regex ApplicationCommandNameRegex()
Returns
Remarks
Pattern:
^[\\p{Ll}\\p{Lt}\\w_'-]{1,32}$Options:<br />
<pre><code class="lang-csharp">RegexOptions.Compiled | RegexOptions.ECMAScript</code></pre><br />
Explanation:<br />
<pre><code class="lang-csharp">○ Match if at the beginning of the string.
○ Match a character in the set ['-0-9A-Z_a-z\u0130\p\p] atomically at least 1 and at most 32 times. ○ Match if at the end of the string or if before an ending newline.