fix #1836 (don't translate /* to /$)'

This commit is contained in:
rlx 2013-08-26 17:03:38 +00:00
parent 3c45a928c3
commit 0378c58d26

View file

@ -627,7 +627,10 @@ Ox.URL = function(options) {
// missing operator or unknown key // missing operator or unknown key
condition = {key: '*', value: str, operator: '='}; condition = {key: '*', value: str, operator: '='};
} }
if (['=', '!='].indexOf(condition.operator) > -1) { if (
['=', '!='].indexOf(condition.operator) > -1
&& condition.value != '*'
) {
if (condition.value[0] == '*') { if (condition.value[0] == '*') {
condition.value = condition.value.slice(1); condition.value = condition.value.slice(1);
condition.operator = condition.operator.replace('=', '$') condition.operator = condition.operator.replace('=', '$')