Urara-Blog/node_modules/.pnpm-store/v3/files/8d/8845e12dad7062b8f5a5ff3b653b84d5688ce3f3d27314add1b05d5c3dd7cda5f08fe98f108dad098293ad8faf326b3690d107fe5bf56ebc301a0bcd9793d4
2022-08-14 01:14:53 +08:00

10 lines
191 B
Text

'use strict';
module.exports = string => {
const match = string.match(/^[ \t]*(?=\S)/gm);
if (!match) {
return 0;
}
return match.reduce((r, a) => Math.min(r, a.length), Infinity);
};