Comments (7)
From [email protected] on October 16, 2012 16:05:26
This is also an issue with IE (tested in IE9 on win7), like the above adding quotes fixes the issue.
from jquery-csv.
From [email protected] on October 16, 2012 20:52:06
Damn... I thought we had this bug nailed already. You can see the details in bug 5 .
Chrome marks empty values as undefined while FireFox and IE use an empty string instead. So, both need to be tested for.
I may have changed something along the way that broke it again. Let me see if I can back-track to see if the previous fix was implemented properly and passes all the tests.
Give me a little time to get another test collection up and running the full gamut of RFC 4801 rules.
from jquery-csv.
From Thanpolas on October 24, 2012 05:27:59
+1 I have the same issue, glad you are on it Evan.
I'd fix it but i am not sure what exceptional cases you are handling by examining the first match (m1) on the replace callback function...
It looks like m2 is what we need in both cases, why not use that?
from jquery-csv.
From [email protected] on October 24, 2012 09:30:28
@-Thanpolas According to the tests, m2 should be working fine in its current state. As a temporary stopgap, I'll try releasing a fix to handle it the same way as m1 was patched previouslyI get the feeling that it will still fail under some circumstances.
I have tried like hell but I'm seeing some very bizarre behavior that indicates a deeper issue with Firefox's RegEx implementation. Long story short, just simply evaluating a match (ie using an 'if statement') mutates it somehow. As soon as I can isolate it completely, I'll be filing a bug upstream for their devs.
It is literally not possible to get all test cases to bass in both Chrome and Firefox (believe me, I've tried). Not without adding browser detection kludge. For the sake of quality in the long term I'd rather not go that route.
To avoid future problems and provide a parser that is more stable and easier to fine-tune I sill be ditching the monolithic regex match and replacing it with a FSM much like the one used in the line splitter.
Either way, I'll let you know when I have some code available to test.
from jquery-csv.
From [email protected] on October 24, 2012 19:22:37
OK, screw using a monolithic regex for parsing CSV entries. Amazingly, I was able to roll out a new ND-FSM (Non-Deterministic Finite State Machine) entry parser with a quickness.
No more browser inconsistency pain...
It doesn't provide support for custom delimiter/separator characters yet and custom escape char support is no longer an option (it was kinda pointless to begin with). As soon as I have them working again, I'll drop the 0.65 release.
In the mean time, if you aren't using non-default delimiter/separator chars, feel free to pull the latest from the repository.
Note: The online testing and examples run the source directly from the repository, so that's another good place you can try it out.
Status: Fixed
from jquery-csv.
From [email protected] on October 26, 2012 22:40:22
Owner: [email protected]
Labels: -Priority-Medium Priority-Critical
from jquery-csv.
From [email protected] on November 01, 2012 21:14:27
This issue was closed by revision df79574 .
from jquery-csv.
Related Issues (20)
- How to trim columns with empty headers HOT 1
- spec(Add Missing Tests) HOT 1
- spec(Create New Demo Template and Migrate the Existing Examples to it) HOT 1
- Link to basic usage demonstration is broken HOT 2
- The Post-1.0 Future HOT 9
- Update CDNJS? HOT 4
- v1.0.1+ triggers NPM install EISGIT error HOT 3
- Fix security vulnerability HOT 1
- As simple standard CSV-reader what is better? HOT 1
- isFileAPIAvailable is not defined HOT 2
- Add jquery.csv.min.js not recognized by minify HOT 6
- multiple problems with newlines in cells HOT 1
- broken example for file handling HOT 4
- Tab as delimiter breaks parsing HOT 1
- csv.replace HOT 1
- toArrays() of single field file appears to omit the final row HOT 3
- Documentation error HOT 2
- Conversion error in .toObjects()
- $ is not defined HOT 1
- toObject Basic Usage Sample Error
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jquery-csv.