Skip to content

Commit f140e87

Browse files
committed
Add escape helper.
1 parent 1921229 commit f140e87

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

features/support/helpers.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,7 @@ def convert_to_constant(classes)
55
end
66
return constant
77
end
8+
9+
def unescape(string)
10+
string.gsub('\n', "\n").gsub('\"', '"').gsub('\e', "\e")
11+
end

0 commit comments

Comments
 (0)