Skip to content

Commit

Permalink
fix: remove all invalid characters in component name
Browse files Browse the repository at this point in the history
  • Loading branch information
egoist authored Nov 29, 2019
1 parent 67e327b commit de1d17c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/saber/src/vue-renderer/page-prop-loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ module.exports = function(source, map) {
// page.slug is optional
if (page.slug) {
Component.options.name = 'page-wrapper-' + page.slug.replace(/[^0-9a-z\\-]/i, '-')
Component.options.name = 'page-wrapper-' + page.slug.replace(/[^0-9a-z\\-]/ig, '-')
}
if (module.hot) {
var Vue = require('vue').default
Expand Down

0 comments on commit de1d17c

Please sign in to comment.