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 CHANGED
@@ -152,7 +152,7 @@ const writeSprite = (spritePath, svgMap) => {
152
152
  writeIfChanged(spritePath, content);
153
153
  return content;
154
154
  };
155
- const defaultMatchPattern = /((name)|(\S*icon\S*)):\s?"(?<icon>.+?)"/gi;
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 = /((name)|(\S*icon\S*)):\s?"(?<icon>.+?)"/gi;
153
+ const defaultMatchPattern = /(\S*icon\S*):\s?"(?<icon>.+?)"/gi;
154
154
  const inputConfigDefaults = {
155
155
  pattern: "**/*.svg",
156
156
  baseDir: "./",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vite-plugin-svg-spritegen",
3
- "version": "1.4.3",
3
+ "version": "1.4.4",
4
4
  "description": "Vite plugin that generates an svg spritesheet, optionally removing unused svg files.",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",