Double escape backslash in help and examples

This commit is contained in:
Harrissou Sant-anna 2021-11-26 15:31:23 +01:00 committed by GitHub
parent 95bffad8b2
commit ebcb7e33a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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"},
@ -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"}
]
}