bingocode 1.1.175 → 1.1.177
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/package.json
CHANGED
|
@@ -78,7 +78,7 @@ export function normalizeDashes(str: string): string {
|
|
|
78
78
|
return str.replaceAll('\u2014', '-').replaceAll('\u2013', '-').replaceAll('\u2015', '-')
|
|
79
79
|
}
|
|
80
80
|
export function normalizeIndentation(str: string): string {
|
|
81
|
-
return str.split('\n').map(line => line.
|
|
81
|
+
return str.split('\n').map(line => line.trim()).join('\n')
|
|
82
82
|
}
|
|
83
83
|
export function findActualString(
|
|
84
84
|
fileContent: string,
|
|
@@ -266,7 +266,11 @@ export class EditNotFoundError extends Error {
|
|
|
266
266
|
* tab → '→', space → '·'
|
|
267
267
|
*/
|
|
268
268
|
export function visibleWhitespace(str: string): string {
|
|
269
|
-
return str
|
|
269
|
+
return str
|
|
270
|
+
.replace(/\t/g, '→')
|
|
271
|
+
.replace(/ /g, '·')
|
|
272
|
+
.replace(/\n/g, '↵')
|
|
273
|
+
.replace(/\r/g, '␍')
|
|
270
274
|
}
|
|
271
275
|
|
|
272
276
|
/**
|