Skip to content

Build your own AI office with Univer Office SDK. Bring editing, calculation, collaboration, and file processing into your product for people and AI agents. Built on an extensible open-source core.

fix: defined name Ru support (#5946)

Roman Sergeev46d2f71c280b
diff --git a/packages/core/src/shared/tools.ts b/packages/core/src/shared/tools.ts
index 54a255bb31..b92b565445 100644
--- a/packages/core/src/shared/tools.ts
+++ b/packages/core/src/shared/tools.ts
@@ -573,7 +573,7 @@ export class Tools {
}
static isStartValidPosition(name: string): boolean {
- const startsWithLetterOrUnderscore = /^[A-Za-z_]/.test(name);
+ const startsWithLetterOrUnderscore = /^[A-Za-zА-Яа-яЁё_]/.test(name);
return startsWithLetterOrUnderscore;
}