From 7aab80084a3cc454378d8e58c6854e0a35cb126d Mon Sep 17 00:00:00 2001 From: DarkWiiPlayer Date: Mon, 15 Feb 2021 08:48:18 +0100 Subject: [PATCH] Add luaescape script for Lua string literals --- bin/luaescape | 3 +++ 1 file changed, 3 insertions(+) create mode 100755 bin/luaescape diff --git a/bin/luaescape b/bin/luaescape new file mode 100755 index 0000000..5326cff --- /dev/null +++ b/bin/luaescape @@ -0,0 +1,3 @@ +#!/usr/bin/env lua + +print(string.format("%q", io.read("*a"):gsub("\n$", '')))