Skip to content

Renaming a script changes how "." are treated - fixes #2302#2305

Open
klein0r wants to merge 1 commit into
masterfrom
fix-rename-script
Open

Renaming a script changes how "." are treated - fixes #2302#2305
klein0r wants to merge 1 commit into
masterfrom
fix-rename-script

Conversation

@klein0r

@klein0r klein0r commented Jul 16, 2026

Copy link
Copy Markdown
Collaborator

Use same logic as new dialog

getId(name?: string): string {
name = name || this.state.name || '';
name = name
.replace(/[\\/\][.*,;'"`<>?\s]/g, '_')
.trim()
.replace(/\.$/, '_');
return `${this.state ? this.state.parent : this.props.parent}.${name}`;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant