Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Strange cut off of content #60

Open
nicojs opened this issue Aug 28, 2020 · 0 comments
Open

Strange cut off of content #60

nicojs opened this issue Aug 28, 2020 · 0 comments

Comments

@nicojs
Copy link

nicojs commented Aug 28, 2020

This sample:

var stripComments = require("strip-comments")
stripComments(`
    it('should be optional', function(done){
      request(app)
      .get('/file/')
      .expect('', done);
    })

    it('should require a preceding /', function(done){
      app.get('/file/*', function(req, res){
        res.end(req.params[0]);
      });
    })
`);

Results in:

    it('should be optional', function(done){
        app.get('/file/*', function(req, res){
        res.end(req.params[0]);
      });

      request(app)
      .get('/file/')
      .expect('', done);
    })

    it('should require a preceding /', function(done){
      var app = express();

      app.get('/file

There it cuts off.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant