Skip to content

Commit 6f56b97

Browse files
committed
update formatter fixer regex pattern
1 parent f0ddd5c commit 6f56b97

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

dist/twcss-to-sass.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@
8989
<script src="https://cdn.jsdelivr.net/npm/vuetify@2.x/dist/vuetify.js"></script>
9090

9191
<!-- twcss-to-sass -->
92-
<script src="https://unpkg.com/@egoistdeveloper/twcss-to-sass@latest/dist/twcss-to-sass.js"></script>
92+
<script src="file:///C:/Users/e9396/Documents/GitHub/twcss-to-sass/dist/twcss-to-sass.js"></script>
9393

9494
<!-- Monaco Editor -->
9595
<script>

examples/browser/twcss-to-sass.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/node/twcss-to-sass.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@egoistdeveloper/twcss-to-sass",
3-
"version": "1.0.3",
3+
"version": "1.0.4",
44
"description": "HTML template to SASS converter for TailwindCSS",
55
"source": "src/index.js",
66
"main": "dist/twcss-to-sass.js",

src/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ module.exports = {
5151
fixFomatterApplyIssue: function (content) {
5252
if (content && content.length) {
5353
var lines = content.split('\n'),
54-
pattern = /@apply [a-zA-Z0-9-_\/ ]+ [a-zA-Z0-9-_\/]+(: )[a-zA-Z0-9-_\/]+/gm;
54+
pattern = /@apply( [a-zA-Z0-9-_\/: ]+)? [a-zA-Z0-9-_\/:]+(: )([a-zA-Z0-9-_\/: ]+)?;/gm;
5555

5656
for (let i = 0; i < lines.length; i++) {
5757
const line = lines[i];

0 commit comments

Comments
 (0)