Skip to content

Commit 823bbd6

Browse files
committed
apply limit to dynamic regex badge
1 parent dc316ad commit 823bbd6

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

services/dynamic/dynamic-regex.service.js

+6-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,12 @@ export default class DynamicRegex extends BaseService {
104104

105105
async handle(namedParams, { url, search, replace, flags }) {
106106
this.constructor.validate(flags)
107-
const { buffer } = await this._request({ url, logErrors: [], httpErrors })
107+
const { buffer } = await this._request({
108+
url,
109+
httpErrors,
110+
logErrors: [],
111+
options: { timeout: { request: 3500 } },
112+
})
108113
const value = this.constructor.transform(buffer, search, replace, flags)
109114
return renderDynamicBadge({ value })
110115
}

0 commit comments

Comments
 (0)