rescript-core
rescript-core copied to clipboard
Add RegExp.flags function with tests
This PR adds the flags getter function to the RegExp module, which returns a
string consisting of the flags of a given regular expression object.
Changes:
- Added
flagsexternal binding to Core__RegExp.res - Added documentation with examples to Core__RegExp.resi
- Created new RegExpTests.res file with tests for the flags function
- Added RegExpTests to TestSuite.res
All tests are passing.
https://github.com/rescript-lang/rescript-core/issues/253
@jmagaram sorry for missing this, it's great! Would you be fine doing this on the main repo https://github.com/rescript-lang/rescript instead? Core has now been integrated into v12 as the new standard library, so all efforts go in there now.
I realize we should make that much more obvious as well when you look at the repo, sorry about that.
https://github.com/rescript-lang/rescript/pull/7461