private static String shrinkRepeating(String e, String min) {
		String[] parts = e.split(",");
		for (int i = 0; i < parts.length; ++i) {
			int indSlash = parts[i].indexOf('/');
			int indDash = parts[i].indexOf('-');
			if (indSlash >= 0 && indDash == -1) {
				if (parts[i].indexOf('*') >= 0) {
					parts[i] = parts[i].substring(indSlash);
				} else {
					parts[i] = parts[i].substring(0, indSlash);
				}
			}
		}
		return concat(',', parts);
	}
private static String shrinkRepeating ( String e , String min ) { String [ ] parts = e . split ( "," ) ; for ( int i = 0 ; i < parts . length ; ++ i ) { int indSlash = parts [ i ] . indexOf ( '/' ) ; int indDash = parts [ i ] . indexOf ( '-' ) ; if ( indSlash >= 0 && indDash == - 1 ) { if ( parts [ i ] . indexOf ( '*' ) >= 0 ) { parts [ i ] = parts [ i ] . substring ( indSlash ) ; } else { parts [ i ] = parts [ i ] . substring ( 0 , indSlash ) ; } } } return concat ( ',' , parts ) ; }
Converts repeating segments from "extended" SauronSoftware to "short"
Quartz form form. For example &quot;0-59/5&quot; will be converted to
&quot;0/5&quot;, &quot;/3&quot; will be converted to &quot;*&#47;3&quot;

@param e		Source item
@param max	Maximal value in this item ("59" for minutes, "23" for hours, etc.)
@return 		Modified string