Skip to content

Commit 2e7f4e5

Browse files
make configurable
1 parent 60a56a6 commit 2e7f4e5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/utils.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
const jsdiff = require('diff');
22

33
const limits = {
4-
summaryAlts: 25,
5-
detailAlts: 10,
6-
}
4+
summaryAlts: parseInt(process.env.MAX_SUMMARY_ALTS, 10) || 25,
5+
detailAlts: parseInt(process.env.MAX_DETAIL_ALTS, 10) || 10,
6+
};
77

88
const segmentString = (string) => {
99
return Array.from(string.matchAll(/[a-z0-9.-]+|[^a-z0-9.-]+/gi), match => match[0]);

0 commit comments

Comments
 (0)