We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 60a56a6 commit 2e7f4e5Copy full SHA for 2e7f4e5
src/utils.js
@@ -1,9 +1,9 @@
1
const jsdiff = require('diff');
2
3
const limits = {
4
- summaryAlts: 25,
5
- detailAlts: 10,
6
-}
+ summaryAlts: parseInt(process.env.MAX_SUMMARY_ALTS, 10) || 25,
+ detailAlts: parseInt(process.env.MAX_DETAIL_ALTS, 10) || 10,
+};
7
8
const segmentString = (string) => {
9
return Array.from(string.matchAll(/[a-z0-9.-]+|[^a-z0-9.-]+/gi), match => match[0]);
0 commit comments