if(string.contains("?share")){ let urlArr = string.components(separatedBy: "?") let link = urlArr[0] }
Please note: JavaScript is required to post comments.