Java Number Min Value minifiedJS(String url)

Here you can find the source of minifiedJS(String url)

Description

minified JS

License

Open Source License

Declaration

public static String minifiedJS(String url) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static String minifiedJS(String url) {
        if (url == null || url.isEmpty()) {
            throw new IllegalArgumentException("URL should not be blank");
        }/*from  w  w w.j a v a2 s.  c o m*/

        if (url.toLowerCase().endsWith(".min.js")) {
            return url;
        }

        if (url.toLowerCase().startsWith("/resources/")) {
            return url.replaceAll("\\.js$", ".min.js");
        }

        return url;
    }
}

Related

  1. minDeg2Bigger(long number)
  2. minDelta(double a, double b)
  3. minDivisibleNumber(float yourDividend, float divisor)
  4. minF(float a, float b)
  5. minFileBuf(long fileSize, int bufSize)
  6. minifyPubkey(String pubkey)
  7. minIgnoreNull(Integer a, Integer b)
  8. minimalIndexOf(String str, String separators, int startIndex)
  9. minimiseSpaces(String input)