Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Comments #16

Open
AbeKline opened this issue May 24, 2021 · 2 comments
Open

Comments #16

AbeKline opened this issue May 24, 2021 · 2 comments

Comments

@AbeKline
Copy link

Would be supper cool if I could use comments. I think I can probably put in a PR for instructions and code changes, we'd just need Peter to pick a syntax, ideally -- or //

@PeterTheOne
Copy link
Owner

Where do you want to put comments? In the Ballots input field? How should they be proccesed?

// would work for me.

@AbeKline
Copy link
Author

Honestly this was so long ago that I forgot.
I think in the ballots field.
A bad first pass would be replacing line 12 in irv.js with

ballots[i] = ballots[i].substring(0,(ballots[i].indexOf("//") == -1) ? ballots[i].length : ballots[i].indexOf("//")).replace(/\s+/g, '').split(',');

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

No branches or pull requests

2 participants