Darkempire78 / OpenCalc

A simple and beautiful calculator for Android
GNU General Public License v3.0
726 stars 81 forks source link

Fix factorial nested issue #440

Closed muryno closed 1 month ago

muryno commented 1 month ago

The implementation to formatFactorial only handles n! and misses cases like (n!)! because it using a simple regex which doesn't considered nested or sequential factorial operations

I have updated to the code and test case to validate all scenario

muryno commented 1 month ago
Screenshot 2024-03-15 at 03 34 29
Darkempire78 commented 1 month ago

thanks!