Question: ```
URL query string "q={city}" must not have replace block

```

I can't get this to work, I've tried several other variants but still get some form of exception.

```
public interface WeatherInterface {

    @GET("/weather?q={city}")
    Call<WeatherModel> getWeather(@Query("city") String city);

}

```

/////

```
public interface WeatherInterface {

    @GET("/weather")
    Call<WeatherModel> getWeather(@Query("q") String city);

}

```

And so on.

WeatherActivity.class

```
Call<WeatherModel> call = weatherInterface.getWeather("""CITYNAME""");
        call.enqueue(new Callback<WeatherModel>() {
            @Override
            public void onResponse(Call<WeatherModel> call, Response<WeatherModel> response) {
                if(response.isSuccessful()) {
                    **///FIRST VARIANT FAILS HERE**
                    city.setText(response.body().getName());
                }
                **///SECOND VARIANT FAILES RESPONSE**
                else Log.d("No response", "RESPONSE");
            }

            @Override
            public void onFailure(Call<WeatherModel> call, Throwable t) {
                Log.d("fail", "fail");
            }
        });

```

EDIT:
Log.d(call.request().url().toString(), "CALL REQUEST URL");

I should share my solution too probably, I just logged the call url.

Answer: 
You can just store `this.value.toLowerCase()` in `data`, then remove the loop and have:

```
$('.ruleDetailsPlaceholder').unhighlight();
$('.ruleDetailsPlaceholder').highlight(data);

```

Here's the [jsfiddle](https://jsfiddle.net/en08ewap/1/). Is this what you were looking for?
```
$("#ruleSearch").keyup(function() {
    var data = this.value.toLowerCase();
    $('.ruleDetailsPlaceholder').unhighlight();
    if (data !== "") $('.ruleDetailsPlaceholder').highlight(data);
})

```

will find "super cool" but not "super stuff"