@unocss/autocomplete 0.37.4 → 0.38.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -128,7 +128,7 @@ function parseAutocomplete(template, theme = {}) {
|
|
|
128
128
|
function searchUsageBoundary(line, index) {
|
|
129
129
|
let start = index;
|
|
130
130
|
let end = index;
|
|
131
|
-
const regex = /[^\s>"'
|
|
131
|
+
const regex = /[^\s>"'`;]/;
|
|
132
132
|
while (start && regex.test(line.charAt(start - 1)))
|
|
133
133
|
--start;
|
|
134
134
|
while (end < line.length && regex.test(line.charAt(end)))
|
package/dist/index.mjs
CHANGED
|
@@ -120,7 +120,7 @@ function parseAutocomplete(template, theme = {}) {
|
|
|
120
120
|
function searchUsageBoundary(line, index) {
|
|
121
121
|
let start = index;
|
|
122
122
|
let end = index;
|
|
123
|
-
const regex = /[^\s>"'
|
|
123
|
+
const regex = /[^\s>"'`;]/;
|
|
124
124
|
while (start && regex.test(line.charAt(start - 1)))
|
|
125
125
|
--start;
|
|
126
126
|
while (end < line.length && regex.test(line.charAt(end)))
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unocss/autocomplete",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.38.2",
|
|
4
4
|
"description": "Autocomplete utils for UnoCSS",
|
|
5
5
|
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"lru-cache": "^7.10.1"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@unocss/core": "0.
|
|
38
|
+
"@unocss/core": "0.38.2"
|
|
39
39
|
},
|
|
40
40
|
"scripts": {
|
|
41
41
|
"build": "unbuild",
|