Not a big deal, but @atul and I decided that we should default parsedSpoilerIdentifier to null in the event of an unexpected value. Note that I still need to explicity check if parsedSpoilerIdentifier !== null, since if I just checked if (parsedSpoilerIdentifier) and parsedSpoilerIdentifier = 0, it would make the condition false.
Details
Details
- Reviewers
atul ginsu - Commits
- rCOMMbeb8c9a17ad6: [native] Default parsedSpoilerIdentifier to null
Tested both spoilers mid-text and at the start of the text to make sure they still work as expected.
Diff Detail
Diff Detail
- Repository
- rCOMM Comm
- Lint
Lint Not Applicable - Unit
Tests Not Applicable