sass configured

This commit is contained in:
dqnid committed 2023-08-15 10:26:20 +02:00
1 parent c2e31ea175
commit 6a78380644
3424 files changed
+360558 -146

No files matched your search

+14
View File
@@ -0,0 +1,14 @@
'use strict';
const minIndent = require('min-indent');
module.exports = string => {
const indent = minIndent(string);
if (indent === 0) {
return string;
}
const regex = new RegExp(`^[ \\t]{${indent}}`, 'gm');
return string.replace(regex, '');
};