Skip to content

Commit

Permalink
Apply review suggestion
Browse files Browse the repository at this point in the history
Co-authored-by: Carlos Cordoba <ccordoba12@gmail.com>
  • Loading branch information
mrclary and ccordoba12 committed Feb 11, 2023
1 parent 3a71515 commit 5431c31
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion spyder/widgets/findreplace.py
Original file line number Diff line number Diff line change
Expand Up @@ -677,7 +677,9 @@ def replace_find_all(self):
else:
pattern = re.escape(search_text)
replace_text = replace_text.replace('\\', r'\\')
if word: # match whole words only

# Match whole words only
if word:
pattern = r'\b{pattern}\b'.format(pattern=pattern)

# Check regexp before proceeding
Expand Down

0 comments on commit 5431c31

Please sign in to comment.