Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Double escape backslash in help and examples
  • Loading branch information
DelazJ authored and nyalldawson committed Nov 29, 2021
1 parent c612a9a commit e216400
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions resources/function_help/json/LIKE
Expand Up @@ -5,7 +5,7 @@
"description": "Returns 1 if the first parameter matches the supplied pattern. Works with numbers also.",
"arguments": [
{"arg":"string/number","description":"value"},
{"arg":"pattern","description":"pattern to compare value with, you can use '%' as a wildcard, '_' as a single char and '\\\\' to escape."}
{"arg":"pattern","description":"pattern to compare value with, you can use '%' as a wildcard, '_' as a single char and '\\\\\\\\' to escape these special characters."}
],
"examples": [
{ "expression":"'A' LIKE 'A'", "returns":"1"},
Expand All @@ -16,7 +16,7 @@
{ "expression":"'ABCD' LIKE '_B_'", "returns":"0"},
{ "expression":"'ABCD' LIKE '_B%'", "returns":"1"},
{ "expression":"'ABCD' LIKE '%B%'", "returns":"1"},
{ "expression":"'1%' LIKE '1\\\\%'", "returns":"1"},
{ "expression":"'1_' LIKE '1\\\\%'", "returns":"0"}
{ "expression":"'1%' LIKE '1\\\\\\\\%'", "returns":"1"},
{ "expression":"'1_' LIKE '1\\\\\\\\%'", "returns":"0"}
]
}

0 comments on commit e216400

Please sign in to comment.