bitwalker / stringex

A string extensions library for node.js
https://www.npmjs.com/package/stringex
15 stars 4 forks source link

Unescaped replacement strings cause issues #3

Closed bergie closed 12 years ago

bergie commented 12 years ago

Unidecoder is using YAML for its replacements tables. The issue is that YAML parsing rules mean that unescaped Y and y become a true, and unescaped N and n become a false.

This is easily fixed by quoting them. So:

- y

Becomes:

- "y"
bitwalker commented 12 years ago

Makes perfect sense, I wasn't aware of that parsing rule so good to know!