prettier-plugin-templ-script
Advanced tools
Comparing version
@@ -22,3 +22,3 @@ import prettier from 'prettier'; | ||
const { text } = path.getValue(); | ||
const scriptRegex = /^(\s*)<script([^>]*?)>([\s\S]+?)<\/script>$/gm; | ||
const scriptRegex = /^(\s*)<script([^>]*)>([\s\S]+?)<\/script>$/gm; | ||
const matches = text.matchAll(scriptRegex); | ||
@@ -25,0 +25,0 @@ let transformedText = text; |
{ | ||
"name": "prettier-plugin-templ-script", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "Prettier plugin for `<script>` elements in templ.", | ||
"repository": "github:therealparmesh/prettier-plugin-templ-script", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/therealparmesh/prettier-plugin-templ-script.git" | ||
}, | ||
"license": "MIT", | ||
@@ -7,0 +10,0 @@ "author": "Parmesh Krishen", |
@@ -5,2 +5,4 @@ # prettier-plugin-templ-script | ||
**Note:** This cannot work with nested `<script>` elements. | ||
## Install | ||
@@ -7,0 +9,0 @@ |
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
3207
3.75%20
11.11%0
-100%