@una-ui/extractor-vue-script 0.18.0-beta.1 → 0.19.0-beta.1

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 CHANGED
@@ -11,7 +11,7 @@ function splitCodeWithArbitraryVariants(code, prefixes) {
11
11
  const camelCasePrefixes = prefixes.map((prefix) => prefix.replace(/-([a-z])/g, (_, c) => c.toUpperCase()));
12
12
  prefixes = [...prefixes, ...camelCasePrefixes];
13
13
  for (const prefix of prefixes) {
14
- const regex = new RegExp(`^\\s*${prefix}:\\s+'.*',?\\s*$`, "mg");
14
+ const regex = new RegExp(`^\\s*${prefix}:\\s+'.*',?\\s*$`, "gm");
15
15
  const matches = code.match(regex);
16
16
  if (!matches)
17
17
  continue;
package/dist/index.mjs CHANGED
@@ -9,7 +9,7 @@ function splitCodeWithArbitraryVariants(code, prefixes) {
9
9
  const camelCasePrefixes = prefixes.map((prefix) => prefix.replace(/-([a-z])/g, (_, c) => c.toUpperCase()));
10
10
  prefixes = [...prefixes, ...camelCasePrefixes];
11
11
  for (const prefix of prefixes) {
12
- const regex = new RegExp(`^\\s*${prefix}:\\s+'.*',?\\s*$`, "mg");
12
+ const regex = new RegExp(`^\\s*${prefix}:\\s+'.*',?\\s*$`, "gm");
13
13
  const matches = code.match(regex);
14
14
  if (!matches)
15
15
  continue;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@una-ui/extractor-vue-script",
3
- "version": "0.18.0-beta.1",
3
+ "version": "0.19.0-beta.1",
4
4
  "description": "Unocss extractor for Vue script",
5
5
  "author": "Phojie Rengel <phojrengel@gmail.com>",
6
6
  "license": "MIT",