OpenBeta / sandbag

JS utilities for working with climbing grades
MIT License
24 stars 17 forks source link

Grades below V0 not parsed as valid grades on VScale #146

Closed johncalvinroberts closed 1 year ago

johncalvinroberts commented 1 year ago

Hi, me again! I think I may have found another potential issue with this really awesome library you have created! Happy to close this one out if this is a known issue or expected behavior.

Problem

Stackblitz demo of the issue: here

Proposed Solution

I think this may be an issue with the regex being used for parsing V Scale grades? So, potential solution would be to fix this Regex and write some tests.

musoke commented 1 year ago

fixed by #147