Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cdocparser

Package Overview
Dependencies
Maintainers
3
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cdocparser - npm Package Compare versions

Comparing version 0.12.1 to 0.12.2

test/fixtures/linePosterStart.test.scss

2

index.js

@@ -44,3 +44,3 @@ 'use strict';

linePattern =
'(?:[ \\t]*' +
'^(?:[ \\t]*' +
escapeStringRegexp(lineCommentStyle) +

@@ -47,0 +47,0 @@ '.*\\S*[\\s]?)+$';

{
"name": "cdocparser",
"version": "0.12.1",
"version": "0.12.2",
"description": "Extract C style comments and extract context from source",

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

@@ -230,2 +230,6 @@ CDocParser

#### 0.12.2
* Fix a bug where poster comments could be deteced inside strings.
#### 0.12.1

@@ -232,0 +236,0 @@

@@ -96,2 +96,12 @@ var fs = require('fs');

it('should not parse line poster inside strings', function () {
var comments = getCommentsFrom('linePosterStart.test.scss');
assert.deepEqual(comments, [{
lines: [ 'Only this poster comment!' ],
type: 'poster',
commentRange: { start: 1, end: 3 },
context: { type: 'testCtx' }
}]);
});
});

@@ -98,0 +108,0 @@

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