diff options
Diffstat (limited to 'assets/node_modules/yaml/browser/dist/addComment.js')
-rw-r--r-- | assets/node_modules/yaml/browser/dist/addComment.js | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/assets/node_modules/yaml/browser/dist/addComment.js b/assets/node_modules/yaml/browser/dist/addComment.js deleted file mode 100644 index 3cac047..0000000 --- a/assets/node_modules/yaml/browser/dist/addComment.js +++ /dev/null @@ -1,17 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.addCommentBefore = addCommentBefore; -exports.default = addComment; - -function addCommentBefore(str, indent, comment) { - if (!comment) return str; - var cc = comment.replace(/[\s\S]^/gm, "$&".concat(indent, "#")); - return "#".concat(cc, "\n").concat(indent).concat(str); -} - -function addComment(str, indent, comment) { - return !comment ? str : comment.indexOf('\n') === -1 ? "".concat(str, " #").concat(comment) : "".concat(str, "\n") + comment.replace(/^/gm, "".concat(indent || '', "#")); -}
\ No newline at end of file |