samuelbetio / storyofmylife

Samuel Betio's clean lines and stylish design will give your site the perfect platform to stand out from the crowd. In modern web design content is everything and our Samuel Betio template puts its focus on just that.
https://goo.gl/8KacYq
MIT License
17 stars 22 forks source link

[custom values] Parsed as number instead of returning "real" value #92

Open 11301969RMB opened 6 years ago

11301969RMB commented 6 years ago

Hello,

First of all, I really like your plugin. Good work!

However, I run into a small issue when using custom values. I use custom values to display version numbers. For instance, I can have 17.5, 12.2b as well as 20.0. This is the latter which is giving me problems. The library seems to parse my custom value as number and is returning 20 instead of 20.0, even though I passed a string in the custom array.

Hence when I get the value back in my backend, I can't find 20 in my array...

I made a JSFiddle to illustrate my issue: http://jsfiddle.net/c3fh5qe3/4/

I expected the library to output the custom value exactly as given initially.

What do you think?

Thanks, regard.