Git Product home page Git Product logo

Comments (6)

mbbender avatar mbbender commented on July 3, 2024

Same issue here.

from mr-data-converter.

Abromeit avatar Abromeit commented on July 3, 2024

[Update] Current situation in the Demo:

  • Numbers that contain special chars like '.' or '-' are quoted, simple numbers are not.
    Just like @ursbraem, I believe that it's way better to quote everything.
    But anyway...might be OK to close this issue if you like to.

from mr-data-converter.

thdoan avatar thdoan commented on July 3, 2024

There is another scenario to consider: postal codes. For example, I'm converting a sheet with a postal code column that contains the value "0800" (a postal code in Australia). The converted JSON property is "postcode":0800, which is invalid. Please provide an option to quote all values, even when the string is all numbers.

from mr-data-converter.

victor-t avatar victor-t commented on July 3, 2024

@thdoan In my situation, UPC code starts with zeros some times. I forked a copy and commented out a few lines.
in js/CSVParser.js

  //---------------------------------------
  // UTILS
  //---------------------------------------

  isNumber: function(string) {
//  if( (string == null) || isNaN( new Number(string) ) ) {
      return false;
    },
//   return true;
 // },

You could probably deleted the whole thing but basically it returns false all the time so it never tries to parser into numbers/int

I would add an option to turn this off and on though. But this was a quick and easy way to change the tool to get the same results.

from mr-data-converter.

thdoan avatar thdoan commented on July 3, 2024

@victor-t I fixed this long back, along with a few other enhancements in my fork.

from mr-data-converter.

victor-t avatar victor-t commented on July 3, 2024

@thdoan I figured but just incase ;) i'll take a look at your fork cause i just recently started using this.

from mr-data-converter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.