fix(rtrim): fix regex for filter