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

Unexpected token { error. #65

Open
matsch01 opened this issue Mar 6, 2017 · 0 comments
Open

Unexpected token { error. #65

matsch01 opened this issue Mar 6, 2017 · 0 comments

Comments

@matsch01
Copy link

matsch01 commented Mar 6, 2017

When I load this file in the browser in my webpacked bundle, it fails due to an illegal character. See ISSUE_HERE below. When I manually delete this character everything works fine.

Please update the module and post new version to NPM. Thanks.

for (var i=start; i<lines.length; i++) {
	var obj = {};
	var currentline=lines[i].split(new RegExp(content.separator+'(?![^"]*"(?:(?:[^"]*"){2})*[^"]*$)'));
	if ( currentline.length === columnCount ) {
		if (content.header) { //ISSUE_HERE (as copied out of Chome debugger)
			for (var j=0; j<headers.length; j++) {
				obj[headers[j]] = currentline[j];
			}
		} else {
			for (var k=0; k<currentline.length; k++) {
				obj[k] = currentline[k];
			}
		}
		result.push(obj);
}
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