From fc87c009806dcc98867f6b58efe29b042aa01dee Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Mon, 18 May 2026 23:10:59 +0800 Subject: node: update --- .../yaml/browser/dist/stringify/stringifyComment.js | 20 -------------------- 1 file changed, 20 deletions(-) delete mode 100644 node_modules/yaml/browser/dist/stringify/stringifyComment.js (limited to 'node_modules/yaml/browser/dist/stringify/stringifyComment.js') diff --git a/node_modules/yaml/browser/dist/stringify/stringifyComment.js b/node_modules/yaml/browser/dist/stringify/stringifyComment.js deleted file mode 100644 index f16fc917..00000000 --- a/node_modules/yaml/browser/dist/stringify/stringifyComment.js +++ /dev/null @@ -1,20 +0,0 @@ -/** - * Stringifies a comment. - * - * Empty comment lines are left empty, - * lines consisting of a single space are replaced by `#`, - * and all other lines are prefixed with a `#`. - */ -const stringifyComment = (str) => str.replace(/^(?!$)(?: $)?/gm, '#'); -function indentComment(comment, indent) { - if (/^\n+$/.test(comment)) - return comment.substring(1); - return indent ? comment.replace(/^(?! *$)/gm, indent) : comment; -} -const lineComment = (str, indent, comment) => str.endsWith('\n') - ? indentComment(comment, indent) - : comment.includes('\n') - ? '\n' + indentComment(comment, indent) - : (str.endsWith(' ') ? '' : ' ') + comment; - -export { indentComment, lineComment, stringifyComment }; -- cgit v1.2.3