WP Discourse - Relinking Comments After Moving Blog

Yes, that should work. You can also use a regular expression. The code for the remap function is here: discourse/script/discourse at main · discourse/discourse · GitHub. The function’s description gives some details about using regular expressions.