Use \( ) instead of string concatenation (NFCI). - gophercgis - Collection of gopher CGI/DCGI for geomyidae
(HTM) hg clone https://bitbucket.org/iamleot/gophercgis
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) changeset 92dbeb37e1f9860ac0f82fcaea15fc5ebb998e72
(DIR) parent de62ecfb49bf510c89af165d77cdaeec04803c3c
(HTM) Author: Leonardo Taccari <iamleot@gmail.com>
Date: Wed, 8 Aug 2018 03:55:20
Use \( ) instead of string concatenation (NFCI).
Diffstat:
reddit/r.dcgi | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff -r de62ecfb49bf -r 92dbeb37e1f9 reddit/r.dcgi
--- a/reddit/r.dcgi Wed Aug 08 03:53:26 2018 +0200
+++ b/reddit/r.dcgi Wed Aug 08 03:55:20 2018 +0200
@@ -15,7 +15,7 @@
.data.children[] | .data |
"[h|\(.title | gsub("\\|"; "\\|") )|" +
"URL:\(.url | gsub("\\|"; "\\|"))|server|port]",
- "t" + .author + " " + ( .created_utc | strftime("%F %H:%M") ),
+ "t\(.author) \( .created_utc | strftime("%F %H:%M") )",
"tScore: \(.score)",
"[1|Comments: \(.num_comments)|" +
"'"${COMMENTS_CGI}?${subreddit}/"'" + "\(.id)|server|port]",