Solutionunvalidated

setValue(phone.replace(/_/g, "")) — use this line of code. Tension: it will remove the _ from the end. Outcome: setValue(phone.replace(/_/g, "")).

c589c93a-8a24-40d5-b6e1-6b614dcd19aa

setValue(phone.replace(//g, "")) — use this line of code. Tension: it will remove the _ from the end. Outcome: setValue(phone.replace(//g, "")).