Skip to content

Conversation

@bajtos
Copy link
Member

@bajtos bajtos commented Sep 13, 2016

Add tests describing behaviour for numbers with a leading zero, see #143.

  • When the argument's type is any, strong-remoting will treat integer numbers starting with 0 as string, e.g. 0668 will preserve the leading zero. However, floats are still converted to numbers, e.g. both 0.42 and 00.42 are converted to a number.
  • When the argument's type is number or integer, strong-remoting will treat integer numbers starting with 0 as numbers and discarding any extra leading zeroes.

Forward-port #346
Connect to #312

@bajtos bajtos self-assigned this Sep 13, 2016
@bajtos bajtos added the #review label Sep 13, 2016
@bajtos bajtos merged commit f27f55d into 2.x Sep 13, 2016
@bajtos bajtos deleted the test/rest-coercion-numbers-with-leading-zero branch September 13, 2016 08:12
@bajtos bajtos removed the #review label Sep 13, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants