mirror of
https://github.com/edcommonwealth/Dashboard.git
synced 2026-03-09 23:38:13 -07:00
chore: add yarn command to put compiled stylesheets into builds folder
This commit is contained in:
parent
7ae453a61c
commit
6e46b46074
6788 changed files with 697992 additions and 12 deletions
20
node_modules/yaml/browser/dist/stringify/stringifyComment.js
generated
vendored
Normal file
20
node_modules/yaml/browser/dist/stringify/stringifyComment.js
generated
vendored
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
/**
|
||||
* 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 };
|
||||
Loading…
Add table
Add a link
Reference in a new issue