Here you can find the source of sanitizeUserEmail(String userEmail)
Parameter | Description |
---|---|
userEmail | the User's Email for Ride.ca account |
public static String sanitizeUserEmail(String userEmail)
//package com.java2s; //License from project: Apache License public class Main { /**//w w w . j a v a 2 s .c om * Method sanitizeUserEmail cleans the userEmail from something like "john.ichat@rides.openfire/edbbeb61" to * "john.ichat@rides.openfire" * @param userEmail the User's Email for Ride.ca account * @return a sanitized Email String */ public static String sanitizeUserEmail(String userEmail) { String sanitizedUserEmail = null; if (userEmail.contains("/")) { sanitizedUserEmail = userEmail.substring(0, userEmail.indexOf("/")); } else { sanitizedUserEmail = userEmail; } return sanitizedUserEmail; } }