We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ad240d1 commit 41767a7Copy full SHA for 41767a7
packages/kit/src/core/sync/utils.js
@@ -27,7 +27,7 @@ export function write(file, code) {
27
28
/** @param {string} str */
29
export function trim(str) {
30
- const indentation = /** @type {RegExpExecArray} */ (/\n?(\s*)/.exec(str))[1];
+ const indentation = /** @type {RegExpExecArray} */ (/\n?([ \t]*)/.exec(str))[1];
31
const pattern = new RegExp(`^${indentation}`, 'gm');
32
return str.replace(pattern, '').trim();
33
}
0 commit comments