@nonbot/cli 0.9.7 → 0.9.8
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/lib/command-builders.js +4 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
|
@@ -42,6 +42,9 @@ export function shellQuoteSingle(s) {
|
|
|
42
42
|
const escaped = String(s).replace(/'/g, `'\\''`);
|
|
43
43
|
return `'${escaped}'`;
|
|
44
44
|
}
|
|
45
|
+
export function bannerSafeText(s) {
|
|
46
|
+
return String(s).replace(/[\\"$`]/g, (ch) => (ch === '\\' ? '\\\\\\\\' : '\\' + ch));
|
|
47
|
+
}
|
|
45
48
|
function bannerHeader(title) {
|
|
46
49
|
const inner = BANNER_WIDTH - 2;
|
|
47
50
|
const top = BOX_TL + BOX_H.repeat(inner) + BOX_TR;
|
|
@@ -264,7 +267,7 @@ export function buildRealCommand(params) {
|
|
|
264
267
|
'',
|
|
265
268
|
bannerHeader('Run'),
|
|
266
269
|
'',
|
|
267
|
-
kvRow('Story', titleLabel),
|
|
270
|
+
kvRow('Story', bannerSafeText(titleLabel)),
|
|
268
271
|
kvRow('Activation', params.activationId || '(unknown)'),
|
|
269
272
|
kvRow('Provider', providerLabel),
|
|
270
273
|
kvRow('Repo', repoLabel),
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.9.
|
|
1
|
+
export const VERSION = '0.9.8';
|
package/package.json
CHANGED