mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 06:37:19 -04:00
Docs: Clarify that strings can be either single or double quoted.
Fixes #3710
This commit is contained in:
parent
605d3faf08
commit
1d75bf47fa
1 changed files with 6 additions and 1 deletions
|
@ -218,13 +218,18 @@ Example:
|
|||
[float]
|
||||
==== String
|
||||
|
||||
A string must be a single character sequence. Note that string values are enclosed in quotes.
|
||||
A string must be a single character sequence. Note that string values are
|
||||
enclosed in quotes, either double or single. Literal quotes in the string
|
||||
need to be escaped with a backslash if they are of the same kind as the string
|
||||
delimiter, i.e. single quotes within a single-quoted string need to be escaped
|
||||
as well as double quotes within a double-quoted string.
|
||||
|
||||
Example:
|
||||
|
||||
[source,js]
|
||||
----------------------------------
|
||||
name => "Hello world"
|
||||
name => 'It\'s a beautiful day'
|
||||
----------------------------------
|
||||
|
||||
[float]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue