mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-12 15:06:27 +00:00
15 lines
268 B
JavaScript
15 lines
268 B
JavaScript
let prev;
|
|
|
|
module.exports = {
|
|
print(val) {
|
|
return JSON.stringify(val);
|
|
},
|
|
|
|
test(val) {
|
|
if (['prBody', 'prTitle'].some(str => str === prev)) {
|
|
return typeof val === 'string' && val.indexOf('\n') > -1;
|
|
}
|
|
prev = val;
|
|
return false;
|
|
},
|
|
};
|