Skip to content

Commit

Permalink
prepend common words with hash symbol before adding (stevencohn#1486)
Browse files Browse the repository at this point in the history
  • Loading branch information
stevencohn authored and weissm committed Jul 29, 2024
1 parent 70bafdf commit cac4e7f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions OneMore/Commands/Tagging/HashtaggerDialog.cs
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,12 @@ private void ShowHideGroup(object sender, EventArgs e)

private void EditTags(string text)
{
// add # to common word
if (text[0] != '#')
{
text = $"#{text}";
}

if (!tagsBox.Text.Contains(text))
{
tagsBox.Text = $"{tagsBox.Text} {text}";
Expand Down

0 comments on commit cac4e7f

Please sign in to comment.