nzakas/cssembed — Issue #37: url parameter parsing
Author: Dither
Created: 2012-02-04 14:16:23+00:00
State: open

There is v2.3.7 of Base64 library already. Also isn't checking for `'`, `"` and optionally for `\` more consistent this way:

```java
while (pos > -1){
pos += 4;
builder.append(line.substring(start, pos));
npos = line.indexOf(")", pos);
//eliminate all quotes in url (they should be escaped inside of it)
String url = line.substring(pos, npos).trim().replaceAll("[\'\"\\\\]", "");

//check for duplicates
if (foundMedia.containsKey(url)){
if (verbose){
System.err.println("[WARNING] Duplicate URL '" + url + "' found at line " + lineNum + ", previously declared at line " + foundMedia.get(url) + ".");
}
}
```