Skip to content

Commit

Permalink
Fixes for ID generation
Browse files Browse the repository at this point in the history
  • Loading branch information
Sominemo committed Jan 9, 2025
1 parent b69414c commit e93b60f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions editor.html
Original file line number Diff line number Diff line change
Expand Up @@ -736,6 +736,11 @@ <h1>Telegram Limits Editor</h1>
id += `_${duplicateNumber}`;
}

id = id.replace(/_+$/, '');
id = id.replace(/^_+/, '');

id = id.replace(/_+/g, '_');

return id;
}

Expand Down

0 comments on commit e93b60f

Please sign in to comment.