This line passes a regex match result straight into parseInt, which only works because JS auto-converts it to a string behind the scenes. It happens to work now, but it's fragile and easy to break. Want to clean it up (make it explicit) once there's test coverage to be sure nothing depends on the current quirky behavior.
proposed fix:

This line passes a regex match result straight into parseInt, which only works because JS auto-converts it to a string behind the scenes. It happens to work now, but it's fragile and easy to break. Want to clean it up (make it explicit) once there's test coverage to be sure nothing depends on the current quirky behavior.
proposed fix: