HtmlExtensions.SlugPattern Field

Namespace:
Weavy.Core.Helpers
Assembly:
Weavy.Core.dll

A regular expression pattern for validating slugs. Valid characters are [a-zA-Z0-9-_.!~'();@=$,]. A slug must also start and end with a letter or digit.

Technically + * : & are also permitted, but urls with these characters will probably be denied by the asp.net request filtering module.

public const string SlugPattern = "^([a-zA-Z0-9]+|[a-zA-Z0-9][a-zA-Z0-9-_\\.!~\\*'\\(\\);:@&=\\+\\$,]{0,253}[a-zA-Z0-9])$"

Field value

string