Skip to content

Commit 455b4d1

Browse files
Update src/app/src/utils/monaco/mdc-compilation.ts
Co-authored-by: vercel[bot] <35613825+vercel[bot]@users.noreply.github.com>
1 parent 9184947 commit 455b4d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app/src/utils/monaco/mdc-compilation.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ function findComponentProps(componentName: string, components: ComponentMeta[])
163163
}
164164

165165
function normalizeText(str: string) {
166-
return str.toLowerCase().normalize('NFD').replace(/[\u0300-\u036F]/g, '').replace(' ', '-')
166+
return str.toLowerCase().normalize('NFD').replace(/[\u0300-\u036F]/g, '').replace(/ /g, '-')
167167
}
168168

169169
function getGlobalCompletionItems(monaco: Monaco, range: IRange, trigger = '/', t: TFunction): CompletionItem[] {

0 commit comments

Comments
 (0)