archondev 2.19.14 → 2.19.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -125,7 +125,8 @@ function shouldEnableSafeMode() {
|
|
|
125
125
|
return process.env["TERM_PROGRAM"] === "Apple_Terminal";
|
|
126
126
|
}
|
|
127
127
|
function toAsciiSafe(value) {
|
|
128
|
-
|
|
128
|
+
const withoutAnsi = value.replace(/\x1B(?:[@-Z\\-_]|\[[0-?]*[ -/]*[@-~])/g, "");
|
|
129
|
+
return withoutAnsi.replace(/[^\x09\x0A\x0D\x20-\x7E]/g, "");
|
|
129
130
|
}
|
|
130
131
|
function enableTerminalCompatibilityMode() {
|
|
131
132
|
if (!shouldEnableSafeMode()) {
|