Find and Replace Does Not Respect 'Match Whole Word'

Toggling ‘Match Whole Word’ shows that the find function correctly distinguishes between whole word matches (‘Input’) and matches that are part of a word (‘InputMode’). However when ‘replace’ is pressed, all matches including ones that are only part of the word are replaced irrespective of the chosen ‘Match Whole Word’ mode.
(i.e. ‘Find: Input, Replace: module’ with ‘match whole word’ enabled will result in UserInput → moduleInput, instead of leaving UserInput unchanged)


Replace next respects it, replace all does not.