it seems like OpenLayers.Filter.Comparison.LIKE doesn't filter special characters! for example,
filter = new OpenLayers.Filter.Comparison({
type: OpenLayers.Filter.Comparison.LIKE,
property: 'name',
value: 'blue'
})
this will work fine. but:
filter = new OpenLayers.Filter.Comparison({
type: OpenLayers.Filter.Comparison.LIKE,
property: 'name',
value: 'light-blue'
})
this will cause an error because of the -
it also can't deal with dots
what can I do to fix that ?
EDIT
I tried:
var filter = new OpenLayers.Filter.Comparison(
{ type: OpenLayers.Filter.Comparison.LIKE,
property: 'name',
value: input }
);
filter.value2regex( "-","." );
I wanted to escape those two characters from any value. but nothing changes.