Skip to content

Comments

Update quantity parser in main.js#105

Open
ghuron wants to merge 1 commit intoPascalco:masterfrom
ghuron:patch-2
Open

Update quantity parser in main.js#105
ghuron wants to merge 1 commit intoPascalco:masterfrom
ghuron:patch-2

Conversation

@ghuron
Copy link

@ghuron ghuron commented Mar 22, 2017

Right now it can parse values, that consists solely by figures. But sometimes people put there units of measures as well (such as "16 m", "25 kg", etc. Now we are extracting float from the start of the value

Right now it can parse values, that consists solely by figures. But sometimes people put there units of measures as well (such as "16 m", "25 kg", etc. Now we are extracting float from the start of the value
@matejsuchanek
Copy link
Contributor

If the template only allows the parameter to be a number, then it's safe to import as the unit is always the same. However, if the template doesn't enforce the unit, then there's no guarantee the unit corresponds with the chosen one. Therefore, I'm against this change as it's now.

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