Bug | Pseudo Check (Sanity required)
- Dominant language
- JavaScript
- Stars
- 438
- Forks
- 77
- PR merge metrics
- No merged PRs in 30d
Description
At the pseudoCheck.js library's code, at line `25`, need to add an extra sanity (*or before*), as stylesheet like the following below, will break it:
```
, something { font-size: 12px; } p { font-color: red; } a { margin: 0.1em; }
```
This is because of the **comma** (`,`) before the `something` element is presented with his styles, the library will try to parse that, and will return an array with first element index as **empty string**, and second, with the CSS object structure.
**Screenshot explained**:

*inline-css.js*
**With an error of**:
```
TypeError: Cannot read property 'length' of undefined
at module.exports (D:\XYZ\WebstormProjects\TestApp\node_modules\inline-css\lib\pseudoCheck.js:27:36)
at D:\XYZ\WebstormProjects\TestApp\node_modules\inline-css\lib\inline-css.js:72:26
at Array.forEach ()
at module.exports (D:\XYZ\WebstormProjects\TestApp\node_modules\inline-css\lib\inline-css.js:68:11)
at D:\WebstormProjects\TestApp\node_modules\inline-css\lib\inlineContent.js:22:27
at D:\XYZ\WebstormProjects\TestApp\node_modules\extract-css\index.js:37:16
at D:\XYZ\WebstormProjects\TestApp\node_modules\batch\index.js:161:14
at processTicksAndRejections (internal/process/task_queues.js:79:11)
```

*pseudoCheck.js*
Contributor guide
Assessment
This issue has not been assessed yet.