Skip to content

Commit

Permalink
Fixes #288
Browse files Browse the repository at this point in the history
  • Loading branch information
mpociot committed Mar 17, 2022
1 parent e079a63 commit 729d1fc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/Commands/ShareCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ public function handle()
$this->info('Trying to use custom domain: '.$subdomains[0].PHP_EOL, OutputInterface::VERBOSITY_VERBOSE);
} else {
$host = Str::beforeLast($this->argument('host'), '.');
$host = str_replace('https://', '', $host);
$host = str_replace('http://', '', $host);
$host = Str::beforeLast($host, ':');
$subdomains = [Str::slug($host)];
$this->info('Trying to use custom domain: '.$subdomains[0].PHP_EOL, OutputInterface::VERBOSITY_VERBOSE);
Expand Down

0 comments on commit 729d1fc

Please sign in to comment.