Skip to content

Commit

Permalink
minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
muremwa committed May 1, 2023
1 parent 67f146f commit a124ce3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions notes/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from django.shortcuts import redirect, reverse, get_object_or_404, render
from django.contrib.auth.decorators import login_required
from django.contrib.auth.mixins import LoginRequiredMixin
from django.core.exceptions import PermissionDenied, MultipleObjectsReturned
from django.core.exceptions import PermissionDenied
from django.db.models import ObjectDoesNotExist
from django.contrib.auth.models import User
from django.views import generic, View
Expand Down Expand Up @@ -287,7 +287,6 @@ def _process_comment(self, comment_text):
"""Takes a comment or reply and returns a markdown version with links to all tagged users"""
mentioned = []
split_comment = comment_text.split(" ")
new_comment = comment_text

for k, text in enumerate(split_comment):
if re.search(r'@\w+', text):
Expand Down

0 comments on commit a124ce3

Please # to comment.