vite-plugin-svg-spritegen 1.4.3 → 1.4.4
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.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -152,7 +152,7 @@ const writeSprite = (spritePath, svgMap) => {
|
|
|
152
152
|
writeIfChanged(spritePath, content);
|
|
153
153
|
return content;
|
|
154
154
|
};
|
|
155
|
-
const defaultMatchPattern = /(
|
|
155
|
+
const defaultMatchPattern = /(\S*icon\S*):\s?"(?<icon>.+?)"/gi;
|
|
156
156
|
const inputConfigDefaults = {
|
|
157
157
|
pattern: "**/*.svg",
|
|
158
158
|
baseDir: "./",
|
package/dist/index.mjs
CHANGED
|
@@ -150,7 +150,7 @@ const writeSprite = (spritePath, svgMap) => {
|
|
|
150
150
|
writeIfChanged(spritePath, content);
|
|
151
151
|
return content;
|
|
152
152
|
};
|
|
153
|
-
const defaultMatchPattern = /(
|
|
153
|
+
const defaultMatchPattern = /(\S*icon\S*):\s?"(?<icon>.+?)"/gi;
|
|
154
154
|
const inputConfigDefaults = {
|
|
155
155
|
pattern: "**/*.svg",
|
|
156
156
|
baseDir: "./",
|
package/package.json
CHANGED