vite-plugin-svg-spritegen 1.5.0 → 2.0.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.js CHANGED
@@ -172,7 +172,7 @@ var writeSprite = (spritePath, svgMap) => {
172
172
  };
173
173
  //#endregion
174
174
  //#region src/index.ts
175
- var defaultMatchPattern = /(\S*icon\S*):\s?"(?<icon>.+?)"/gi;
175
+ var defaultMatchPattern = /['"`]?icon['"`]?\s*[=:]{1}\s*['"`]{1}(?<icon>.+?)['"`]{1}/gi;
176
176
  var inputConfigDefaults = {
177
177
  pattern: "**/*.svg",
178
178
  baseDir: "./",
package/dist/index.mjs CHANGED
@@ -144,7 +144,7 @@ var writeSprite = (spritePath, svgMap) => {
144
144
  };
145
145
  //#endregion
146
146
  //#region src/index.ts
147
- var defaultMatchPattern = /(\S*icon\S*):\s?"(?<icon>.+?)"/gi;
147
+ var defaultMatchPattern = /['"`]?icon['"`]?\s*[=:]{1}\s*['"`]{1}(?<icon>.+?)['"`]{1}/gi;
148
148
  var inputConfigDefaults = {
149
149
  pattern: "**/*.svg",
150
150
  baseDir: "./",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vite-plugin-svg-spritegen",
3
- "version": "1.5.0",
3
+ "version": "2.0.1",
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",