API Reference
@univerjs
@univerjs/core
functions
Namecharactercheck

@univerjs/core v0.3.0Docs


Function: nameCharacterCheck()

function nameCharacterCheck(name): boolean

The name you entered for the worksheet or chart is invalid. Please ensure:

The name is no more than 31 characters. The first and last characters cannot be ' The name does not contain any of the following characters: : \ / ? * [ or ]. The name is not empty.

Parameters

ParameterType
namestring

Returns

boolean

Defined in

submodules/univer/packages/core/src/shared/name.ts:27 (opens in a new tab)


Copyright © 2021-2024 DreamNum Co,Ltd. All Rights Reserved.