@veloceapps/api 8.0.0-20 → 8.0.0-22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1007,7 +1007,7 @@ class DocumentTemplatesApiService {
|
|
1007
1007
|
const patternLimit = /(\s*limit\s\d*)/i;
|
1008
1008
|
let limit = 1;
|
1009
1009
|
if (statement && patternLimit.test(statement)) {
|
1010
|
-
const limitStr = statement?.match(patternLimit)?.[1]
|
1010
|
+
const limitStr = statement?.match(patternLimit)?.[1]?.trim().substring(5).trim();
|
1011
1011
|
if (limitStr) {
|
1012
1012
|
limit = Number.parseInt(limitStr, 10);
|
1013
1013
|
}
|