We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bce265a commit 50be0e9Copy full SHA for 50be0e9
reflex/components/plotly/plotly.py
@@ -238,14 +238,6 @@ def add_custom_code(self) -> list[str]:
238
const _rxLocaleCache = {};
239
240
function _rxLoadLocale(locale) {
241
- // Guard against path traversal / invalid locale codes
242
- if (!/^[a-z]{2,3}(-[a-z]{2,4})?$/.test(locale.toLowerCase())) {
243
- console.warn(
244
- "[rx.plotly] Locale \"" + locale + "\" is not a valid BCP-47 code and was ignored."
245
- );
246
- return Promise.resolve(null);
247
- }
248
-
249
const key = locale.toLowerCase();
250
251
// Store the Promise itself — prevents duplicate in-flight fetches
0 commit comments