Skip to content

Commit 0d20a8c

Browse files
authored
fix(telegram): trim username for convenience #4520 (#4521)
1 parent a6ee840 commit 0d20a8c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

bridges/TelegramBridge.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,9 @@ private function ellipsisTitle($text)
400400

401401
private function normalizeUsername()
402402
{
403-
return ltrim($this->getInput('username'), '@');
403+
$username = trim($this->getInput('username'));
404+
405+
return ltrim($username, '@');
404406
}
405407

406408
public function detectParameters($url)

0 commit comments

Comments
 (0)