Skip to content

Commit

Permalink
fix: fix hints generating script
Browse files Browse the repository at this point in the history
  • Loading branch information
woothu committed May 18, 2020
1 parent 7acfab3 commit 5bfe25c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build/buildVscodeHints.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ function getTypesClasses (types) {
const name = rawClass.match(/(?<=class\s+).*?(?=\s+extends)/gs)[0]

const propsRaw = rawClass.substring(rawClass.indexOf('{') + 1, rawClass.indexOf('}'))
let props = propsRaw.match(/([a-zA-Z]+:).*?(?=[a-zA-Z]+:|$)/g)
let props = propsRaw.match(/([a-zA-Z?]+:).*?(?=[a-zA-Z?]+:|$)/g)
if (props) {
props = props.map(prop => prop.trim())
}
Expand Down

0 comments on commit 5bfe25c

Please sign in to comment.