On the Adlists page, under the "Add a new adlist" section is the "address" field. This field can add one or more adlist URLs by separating them with a space. However, this separator is very fragile and will break if there are multiple spaces between URLs or other types of white space such as line feeds or tabs are used. This is problem because copying a group of recommended adlists often has them on separate lines and often copying from the web adds an extra space at the beginning or end of a single line.
I propose that a normalization step be added in the frontend javascript to take the raw input from the "address" field and use regex to replace all whitespace delimiters with a single space and trim leading and trailing spaces. I feel that this should be done in the frontend since it's normalizing the user input. This way the backend can remain strict about its input format.
The normalization step would be a simple function.
function normalizeAddress(address) {
return address.replace(/\s+/gm, ' ').trim()
}