There was an error while loading. Please reload this page.
1 parent 11b8d47 commit fe4e511Copy full SHA for fe4e511
1 file changed
tools/doc/common.js
@@ -3,11 +3,9 @@
3
constyaml=require('js-yaml');
4
5
functionisYAMLBlock(text){
6
-return!!text.match(/^<!--YAML/);
+return/^<!--YAML/.test(text);
7
}
8
9
-exports.isYAMLBlock=isYAMLBlock;
10
-
11
functionarrify(value){
12
returnArray.isArray(value) ? value : [value];
13
@@ -32,11 +30,8 @@ function extractAndParseYAML(text) {
32
30
33
31
34
meta.changes=meta.changes||[];
35
-for(constentryofmeta.changes){
36
-entry.description=entry.description.replace(/^\^\s*/,'');
37
-}
38
39
returnmeta;
40
41
42
-exports.extractAndParseYAML=extractAndParseYAML;
+module.exports={ isYAMLBlock,extractAndParseYAML};
0 commit comments