Skip to content

Commit

Permalink
chore: minor tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Aug 1, 2018
1 parent c28f792 commit b3c5e64
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/platforms/web/server/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const isAttr = makeMap(
)

const unsafeAttrCharRE = /[>/="'\u0009\u000a\u000c\u0020]/
export const isSSRUnsafeAttr = name => {
export const isSSRUnsafeAttr = (name: string): boolean => {
return unsafeAttrCharRE.test(name)
}

Expand Down
2 changes: 1 addition & 1 deletion test/unit/features/directives/model-checkbox.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ describe('Directive v-model checkbox', () => {
expect(vm.$el.children[1].textContent).toBe('false')
}).then(done)
})

// #7811
it('type should not be overwritten by v-bind', () => {
const vm = new Vue({
Expand Down

0 comments on commit b3c5e64

Please sign in to comment.