trimQuery method
Removes a query from a URL string.
Implementation
String trimQuery() {
if (!contains("?")) {
return this;
}
return split("?").first;
}
Removes a query from a URL string.
String trimQuery() {
if (!contains("?")) {
return this;
}
return split("?").first;
}