This commit is contained in:
wuxu
2026-03-31 17:51:43 +08:00
commit 8d726651e2
4756 changed files with 984942 additions and 0 deletions
+4
View File
@@ -0,0 +1,4 @@
const convertToSpaces = (input, spaces = 2) => {
return input.replace(/^\t+/gm, $1 => ' '.repeat($1.length * spaces));
};
export default convertToSpaces;