svelte-ag 1.0.68 → 1.0.69

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.
@@ -42,7 +42,7 @@ async function readPackageNameAt(directory) {
42
42
  export default async function componentSourceCollector(opts = { safePackages: [] }) {
43
43
  // constants
44
44
  const outFileName = opts.outputFile ?? 'component-sources.css';
45
- const classAttributeRegex = /\bclass\s*=/;
45
+ const classAttributeRegex = /(?:^|[^\w-])(?:className|class)\s*(?:=|:)\s*/;
46
46
  const importRegex = /@import\s+['"]([^'"]+)['"]/g;
47
47
  // state
48
48
  let outputFilePath;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "svelte-ag",
3
- "version": "1.0.68",
3
+ "version": "1.0.69",
4
4
  "description": "Useful svelte components",
5
5
  "bugs": "https://github.com/ageorgeh/svelte-ag/issues",
6
6
  "repository": {
@@ -66,7 +66,7 @@ async function readPackageNameAt(directory: string): Promise<string | null> {
66
66
  export default async function componentSourceCollector(opts: Options = { safePackages: [] }): Promise<Plugin> {
67
67
  // constants
68
68
  const outFileName = opts.outputFile ?? 'component-sources.css';
69
- const classAttributeRegex = /\bclass\s*=/;
69
+ const classAttributeRegex = /(?:^|[^\w-])(?:className|class)\s*(?:=|:)\s*/;
70
70
  const importRegex = /@import\s+['"]([^'"]+)['"]/g;
71
71
 
72
72
  // state