Here you can find the source of sanitizeIDs(String str)
Parameter | Description |
---|---|
str | a parameter |
public static String sanitizeIDs(String str)
//package com.java2s; //License from project: Apache License public class Main { /**// w ww . java 2 s.c om * Replace last "|" in pageIDs * * @param str * @return */ public static String sanitizeIDs(String str) { if (str != null && str.length() > 0 && str.charAt(str.length() - 1) == '|') { str = str.substring(0, str.length() - 1); } return str; } }