Skip to content

Commit 8d7bd6e

Browse files
authored
Update index.ts
1 parent a0c9b8c commit 8d7bd6e

File tree

1 file changed

+1
-1
lines changed
  • src/runtime/composables/useDrupalCe

1 file changed

+1
-1
lines changed

src/runtime/composables/useDrupalCe/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ export const useDrupalCe = () => {
257257
}
258258

259259
// Progressively remove segments from the custom element name to find a matching default component.
260-
const regex = /-?[^-]*$/
260+
const regex = /-?[^-]+$/
261261
let componentName = element
262262
while (componentName) {
263263
// Try resolving by adding 'Default' suffix.

0 commit comments

Comments
 (0)