frictionlessdata / tableschema-js

A JavaScript library for working with Table Schema.
http://frictionlessdata.io/
MIT License
82 stars 27 forks source link

How is -£1000.00 handled by bareNumber? #144

Closed Stephen-Gates closed 6 years ago

Stephen-Gates commented 6 years ago

I proposed a currency pattern for table schema. I came across a comment in Specs Issue #258 highlighting the -£1000.00 edge case.

How is this handled by TableSchema.js?

roll commented 6 years ago

It will not work in tableschema-js. We could fix it but it probably should be fixed on the spec level too

If false the contents of this field may contain leading and/or trailing non-numeric characters (which implementors MUST therefore strip).

because it clearly says about leading/trailing characters. So the lib just follows it.

Stephen-Gates commented 6 years ago

I'll close and leave this to be handled in specs first