refactor: use shared util, remove unused regex

This commit is contained in:
Evan You
2018-10-16 15:53:23 -04:00
parent 149d82d618
commit aac7805b3a
4 changed files with 5 additions and 13 deletions

View File

@@ -3,8 +3,6 @@ export const EMPTY_OBJ: { readonly [key: string]: any } = Object.freeze({})
export const NOOP = () => {}
export const onRE = /^on/
export const vnodeHookRE = /^vnode/
export const handlersRE = /^on|^vnode/
export const reservedPropRE = /^(?:key|ref|slots)$|^vnode/
export const isArray = Array.isArray