summaryrefslogtreecommitdiff
path: root/grammars/json_arr.gbnf
diff options
context:
space:
mode:
authorGeorgi Gerganov <ggerganov@gmail.com>2024-03-05 15:56:24 +0200
committerGeorgi Gerganov <ggerganov@gmail.com>2024-03-05 15:56:24 +0200
commit82cb31eb93fd19b74115e0f0133225d1dfdbfdbc (patch)
treec2c7de9900b33a73a6fba4299523b54528676e1f /grammars/json_arr.gbnf
parentb1a4e994fde929300d4aeb1deb8320c59cb6edec (diff)
Revert "grammars : don't allow to output unescaped new line in string (#5885)"
This reverts commit b1a4e994fde929300d4aeb1deb8320c59cb6edec.
Diffstat (limited to 'grammars/json_arr.gbnf')
-rw-r--r--grammars/json_arr.gbnf2
1 files changed, 1 insertions, 1 deletions
diff --git a/grammars/json_arr.gbnf b/grammars/json_arr.gbnf
index fd5740ee..ef53e77a 100644
--- a/grammars/json_arr.gbnf
+++ b/grammars/json_arr.gbnf
@@ -24,7 +24,7 @@ array ::=
string ::=
"\"" (
- [^"\\\n] |
+ [^"\\] |
"\\" (["\\/bfnrt] | "u" [0-9a-fA-F] [0-9a-fA-F] [0-9a-fA-F] [0-9a-fA-F]) # escapes
)* "\"" ws