It appears you have a well-structured Git repository with various files, including SVG icons and HTML documents. Here's a brief overview:
This commit is contained in:
13
backend/node_modules/strip-indent/index.js
generated
vendored
Normal file
13
backend/node_modules/strip-indent/index.js
generated
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
import minIndent from 'min-indent';
|
||||
|
||||
export default function stripIndent(string) {
|
||||
const indent = minIndent(string);
|
||||
|
||||
if (indent === 0) {
|
||||
return string;
|
||||
}
|
||||
|
||||
const regex = new RegExp(`^[ \\t]{${indent}}`, 'gm');
|
||||
|
||||
return string.replace(regex, '');
|
||||
}
|
Reference in New Issue
Block a user