Comments (7)
Interesting! If you post the YAML document that's failing I'll look into it when I can 😄
from yaml-js.
Sure! You can grab it here http://d.pr/f/1kVn3
from yaml-js.
Hi, we have same problem with unicode char U+1F60E (Smiling face with sunglases). It comes from external source, but it cripple our processing tool.
I investigate for reason.
It is because https://github.com/connec/yaml-js/blob/master/src/lib/reader.coffee#L19
There is check for NON_PRINTABLE character set. But there is explicit range for allowed chars.
If I comment calling @check_printable()
it is parsed correctly.
So I propose instead of checking for "allowed set" of unicode chars, check just for a few dangerous char, like \u2028
or \u2029
Is it acceptable solution for you @connec? I'm able to delivery PR in this case
Cheers
from yaml-js.
@connec Can we get a comment on this?
from yaml-js.
Sorry for the delay investigating this. I tweaked the NON_PRINTABLE
regular expression to allow code points above 0xFFFF
. For reference I tweaked a regex created by regenerate.
from yaml-js.
@connec Can we get a npm release please?
from yaml-js.
@pksunkara published 0.1.5!
from yaml-js.
Related Issues (20)
- Accepting @-symbols HOT 4
- Incorrect dump of JSON string HOT 1
- Accept %YAML directive? HOT 5
- Improve default dump style HOT 1
- Documentation and Error Handling HOT 1
- Error to Install HOT 2
- error while using .dump(data) HOT 2
- internal modules hidden in bundle HOT 2
- fix require usage HOT 2
- Can't call add_constructor on Loader object HOT 7
- Conflict with js-yaml? HOT 4
- Supported Node/ECMAScript versions HOT 4
- Escaped forward-slashes cause yaml-js to crash HOT 2
- require.extensions is not supported by webpack. Use a loader instead. HOT 3
- why use Date.UTC ? HOT 4
- parse yaml error while text is a valid json string HOT 6
- compose wrong end_mark on objects in seq HOT 1
- Document with misindented/unescaped string causes "logic failure" error HOT 1
- How to add a field with variables in yaml using yaml-js ? HOT 1
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 yaml-js.