New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

postcss-comment

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postcss-comment - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

3

lib/tokenize.js

@@ -225,3 +225,4 @@ var SINGLE_QUOTE = 39; // `''

content = '/*' + css.slice(pos + 2, next + 1) + ' */';
content = '/*' + css.slice(pos + 2, next + 1);
content = content.replace(/\*\//g, '*\\/') + ' */'

@@ -228,0 +229,0 @@ nextLine = line;

{
"name": "postcss-comment",
"version": "0.1.1",
"version": "0.1.2",
"description": "Allow postcss to support inline comments",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -12,4 +12,8 @@ # postcss-comment

```javascript
var postcss = require('postcss-comment')
require('postcss-comment')
var postcss = require('postcss')
// or
// var postcss = require('postcss-comment')
var fs = require('fs')

@@ -32,9 +36,13 @@

```css
/*
* comments//
* //comments
*/
// comments
// comments
.inline-comment { // comments
// comments
//* comments*/
.inline-comment { /// comments
// com//ments
color: red; // comments
} // comments
// comments
} // /*comments
//*/ comments

@@ -45,10 +53,14 @@ ```

```css
/*
* comments//
* //comments
*/
/* comments */
/* comments */
.inline-comment { /* comments */
/* comments */
/** comments*\/ */
.inline-comment { /*\/ comments */
/* com//ments */
color: red; /* comments */
} /* comments */
/* comments */
} /* /*comments */
/**\/ comments */
```
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc