I want to replace all instances of ./
in my js
My code is like this
var text = './test';
var baseUrl = 'http://www.example.com/';
text = text.replace(/./\/g, baseUrl);
This isn't working as I want to also replace a forward slash. How can I ignore this?