Skip to content

Commit 0985393

Browse files
Fixed vue prop handling (#18)
1 parent 1a1741f commit 0985393

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ const vueCleaningRegex = /<\/*script.*>|<style[\s\S]*style>|<\/*br>/ig;
157157
const vueTemplateRegex = /(<template.*>)([\s\S]*)(<\/template>)/ig;
158158
const vueCommentRegex = /<\!--[\s\S]*?-->/ig;
159159
const vueBindRegex = /(:\[)([\s\S]*?)(\])/ig;
160-
const vuePropRegex = /\s([.:@])([a-zA-Z]*?=)/ig;
160+
const vuePropRegex = /\s([.:@])([\s\S]*?=)/ig;
161161

162162
/**
163163
* Convert a single vue file to AST

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@joernio/astgen",
3-
"version": "3.5.0",
3+
"version": "3.5.1",
44
"description": "Generate JS/TS AST in json format with Babel",
55
"exports": "./index.js",
66
"keywords": [

0 commit comments

Comments
 (0)