Skip to content

Commit 6302025

Browse files
Vue parsing fix
1 parent fcddaec commit 6302025

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,8 @@ const codeToJsAst = (code) => {
156156
const vueCleaningRegex = /<\/*script.*>|<style[\s\S]*style>|<\/*br>/ig;
157157
const vueTemplateRegex = /(<template.*>)([\s\S]*)(<\/template>)/ig;
158158
const vueCommentRegex = /<\!--[\s\S]*?-->/ig;
159-
const vueBindRegex = /(:\[)([\s\S]*?)(\])/ig;
160-
const vuePropRegex = /\s([.:@])([\s\S]*?=)/ig;
159+
const vueBindRegex = /(:\[)([\S]*?)(\])/ig;
160+
const vuePropRegex = /\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.9.0",
3+
"version": "3.10.0",
44
"description": "Generate JS/TS AST in json format with Babel",
55
"exports": "./index.js",
66
"keywords": [

0 commit comments

Comments
 (0)