fix regex for https