SlugOptions
ceramic.SlugOptions (Class)
Configuration options for slug generation.
All fields are optional and have sensible defaults. Use @:structInit syntax for easy initialization:
var options:SlugOptions = {
lower: false,
replacement: "_"
};
Instance Members
lower: Bool
Whether to convert the slug to lowercase. Default: true
remove: EReg
Regular expression pattern for characters to remove. Default: Removes $ * + ~ . ( ) ' " ! \ : @ ? §
replacement: String
String to replace spaces with. Default: "-" (hyphen)
@ ? §
Name | Type | Default | Description |
---|---|---|---|
lower |
Null<Bool> | (optional) | * Whether to convert the slug to lowercase. Default: true |
remove |
Null<EReg> | (optional) | * Regular expression pattern for characters to remove. Default: Removes $ * + ~ . ( ) ' " ! \ : |
replacement |
Null<String> | (optional) | * String to replace spaces with. Default: "-" (hyphen) |
Metadata
Name | Parameters |
---|---|
:structInit |
- |