智能照明系统APP-本地串口
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
LightingSystemApp-serial/.svn/pristine/74/74c6cee4dfc45680c96adab5662...

19 lines
466 B

var map = require('./map');
var trim = require('./trim');
var regBlockCmt = /(\/\*[\s\S]*?\*\/)/gm;
exports = function(str) {
var ret = str.match(regBlockCmt);
if (!ret) return [];
ret = map(ret, function(comment) {
return trim(
map(comment.split('\n'), function(line) {
return trim(line).replace(/^\/\*+|\*+\/$|^\*+/g, '');
}).join('\n')
);
});
return ret;
};
module.exports = exports;