From 3ce2f1cce288d23727d1b6f688a5b9c2e6ed4c25 Mon Sep 17 00:00:00 2001 From: npt-1707 Date: Mon, 17 Aug 2026 05:52:29 +0800 Subject: [PATCH] src/main/webapp/static/plugins/babel-core/5.8.24/browser.js: Limit str to 100 to avoid ReDoS of 0.3s --- src/main/webapp/static/plugins/babel-core/5.8.24/browser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/webapp/static/plugins/babel-core/5.8.24/browser.js b/src/main/webapp/static/plugins/babel-core/5.8.24/browser.js index e333c456..f27337c2 100644 --- a/src/main/webapp/static/plugins/babel-core/5.8.24/browser.js +++ b/src/main/webapp/static/plugins/babel-core/5.8.24/browser.js @@ -36258,7 +36258,7 @@ module.exports = function(val, options){ function parse(str) { str = '' + str; - if (str.length > 10000) return; + if (str.length > 100) return; var match = /^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(str); if (!match) return; var n = parseFloat(match[1]);