Skip to content

Commit 3904d71

Browse files
authored
Fix factory function error
1 parent 393cd1c commit 3904d71

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/components/VueFuse.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,9 @@ export default {
5454
},
5555
tokenSeparator: {
5656
type: RegExp,
57-
default: RegExp(' ')
57+
default() {
58+
return new RegExp(' ');
59+
}
5860
},
5961
matchAllTokens: {
6062
type: Boolean,

0 commit comments

Comments
 (0)