From 1bbf778c7a664e3081523e29136f57419c07a166 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Deuc=D0=B5?= <shurd@sasktel.net>
Date: Thu, 4 Mar 2021 04:39:27 -0500
Subject: [PATCH] Don't strip $.

I think I was intending to strip & and prevent those variables,
but it looks like the original doesn't.

However, it also looks like the original doesn't *always* replace
string variables... will need to look into that harder in the future.
---
 xtrn/lord2/l2lib.js | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/xtrn/lord2/l2lib.js b/xtrn/lord2/l2lib.js
index bda6a33888..ff65183683 100644
--- a/xtrn/lord2/l2lib.js
+++ b/xtrn/lord2/l2lib.js
@@ -571,10 +571,7 @@ function clean_str(str)
 	var i;
 
 	for (i = 0; i < str.length; i += 1) {
-		if (str[i] === '$') {
-			// Just skip it.
-		}
-		else if (str[i] !== '`') {
+		if (str[i] !== '`') {
 			ret += str[i];
 		}
 		else {
-- 
GitLab