color-name-list 10.8.0 → 10.8.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "color-name-list",
3
- "version": "10.8.0",
3
+ "version": "10.8.1",
4
4
  "description": "long list of color names",
5
5
  "main": "dist/colornames.json",
6
6
  "browser": "dist/colornames.umd.js",
package/scripts/build.js CHANGED
@@ -15,6 +15,9 @@ const errors = [];
15
15
  // spaces regex
16
16
  const spacesValidation = /^\s+|\s{2,}|\s$/;
17
17
 
18
+ // quote regex
19
+ const quoteValidation = /"|'|`/;
20
+
18
21
  // setting
19
22
  const baseFolder = __dirname + '/../';
20
23
  const folderSrc = 'src/';
@@ -62,6 +65,9 @@ colorsSrc.values['name'].forEach((name) => {
62
65
  if (spacesValidation.test(name)) {
63
66
  log('name', name, `${name} found either a leading or trailing space (or both)`);
64
67
  }
68
+ if (quoteValidation.test(name)) {
69
+ log('name', name, `${name} found a quote character, should be an apostrophe ’`);
70
+ }
65
71
  });
66
72
 
67
73
  // loop good name markers