<!-- ✨ Thanks for reporting a bug! ➡️ Please don't ignore this template --> <!-- 1️⃣ Explain here what's wrong --> <!-- 2️⃣ Specify which rule is buggy here and in the title --> <!-- 3️⃣ Add some examples where the issue appears --> `prefer-string-replace-all` ignores `test1` but reports `test2`. Is this the intended behavior, or should `test1` also be reported? ```typescript const test1 = (Math.random() < 0.5 ? 'string' : null)?.replace(/\s/g, ''); const test2 = 'string'.replace(/\s/g, ''); ```