Skip to content

Commit

Permalink
Vue parsing fix
Browse files Browse the repository at this point in the history
  • Loading branch information
max-leuthaeuser committed Dec 5, 2023
1 parent fcddaec commit 6302025
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,8 @@ const codeToJsAst = (code) => {
const vueCleaningRegex = /<\/*script.*>|<style[\s\S]*style>|<\/*br>/ig;
const vueTemplateRegex = /(<template.*>)([\s\S]*)(<\/template>)/ig;
const vueCommentRegex = /<\!--[\s\S]*?-->/ig;
const vueBindRegex = /(:\[)([\s\S]*?)(\])/ig;
const vuePropRegex = /\s([.:@])([\s\S]*?=)/ig;
const vueBindRegex = /(:\[)([\S]*?)(\])/ig;
const vuePropRegex = /\s([.:@])([\S]*?=)/ig;

/**
* Convert a single vue file to AST
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@joernio/astgen",
"version": "3.9.0",
"version": "3.10.0",
"description": "Generate JS/TS AST in json format with Babel",
"exports": "./index.js",
"keywords": [
Expand Down

0 comments on commit 6302025

Please sign in to comment.