about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbeatrix <beatrix.bitrot@gmail.com>2018-01-24 08:56:38 -0500
committerGitHub <noreply@github.com>2018-01-24 08:56:38 -0500
commit5a4de1cf0f94903307c4808b002b6a2d5187646b (patch)
treea6db4047890f9e0f9dfad3192d91caab3b4ef3aa
parentc53d7196e6116dd2ac1103ae17107df66b775b15 (diff)
parent9abb5becf478056bbfd5eee7fd37a1a3953c9919 (diff)
Merge pull request #349 from codl/patch-1
remove escapes from server-side ɣaml handler
-rw-r--r--app/lib/frontmatter_handler.rb21
1 files changed, 0 insertions, 21 deletions
diff --git a/app/lib/frontmatter_handler.rb b/app/lib/frontmatter_handler.rb
index 83e5f465e..a95a1e294 100644
--- a/app/lib/frontmatter_handler.rb
+++ b/app/lib/frontmatter_handler.rb
@@ -189,27 +189,6 @@ class FrontmatterHandler
     case str[0]
     when '"'
       str[1..-2]
-        .gsub(/\\0/, "\u{00}")
-        .gsub(/\\a/, "\u{07}")
-        .gsub(/\\b/, "\u{08}")
-        .gsub(/\\t/, "\u{09}")
-        .gsub(/\\\u{09}/, "\u{09}")
-        .gsub(/\\n/, "\u{0a}")
-        .gsub(/\\v/, "\u{0b}")
-        .gsub(/\\f/, "\u{0c}")
-        .gsub(/\\r/, "\u{0d}")
-        .gsub(/\\e/, "\u{1b}")
-        .gsub(/\\ /, "\u{20}")
-        .gsub(/\\"/, "\u{22}")
-        .gsub(/\\\//, "\u{2f}")
-        .gsub(/\\\\/, "\u{5c}")
-        .gsub(/\\N/, "\u{85}")
-        .gsub(/\\_/, "\u{a0}")
-        .gsub(/\\L/, "\u{2028}")
-        .gsub(/\\P/, "\u{2029}")
-        .gsub(/\\x([0-9a-fA-F]{2})/mu) {|s| $1.to_i.chr Encoding::UTF_8}
-        .gsub(/\\u([0-9a-fA-F]{4})/mu) {|s| $1.to_i.chr Encoding::UTF_8}
-        .gsub(/\\U([0-9a-fA-F]{8})/mu) {|s| $1.to_i.chr Encoding::UTF_8}
     when "'"
       str[1..-2].gsub(/''/, "'")
     else