mirror of
https://github.com/shlinkio/shlink.git
synced 2026-03-10 09:13:11 +08:00
Add support for short URL mode in installer, and handle loosely mode in custom slugs
This commit is contained in:
@@ -21,4 +21,9 @@ final class UrlShortenerOptions
|
||||
public readonly ShortUrlMode $mode = ShortUrlMode::STRICT,
|
||||
) {
|
||||
}
|
||||
|
||||
public function isLooselyMode(): bool
|
||||
{
|
||||
return $this->mode === ShortUrlMode::LOOSELY;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user