unit("m ^ (1)") throws an error
Open
question
- Dominant language
- JavaScript
- Stars
- 15.1k
- Forks
- 1.3k
- PR merge metrics
- No merged PRs in 30d
Description
The issues section is used only for bug reports. Please use the [Discussions](https://github.com/josdejong/mathjs/discussions) section to ask questions and share ideas and suggestions.
**Describe the bug**
wrapping the power in brackets brakes `unit()` parser
**To Reproduce**
- try `unit("m ^ (1)")`
will throw:
`SyntaxError: In "km ^ (1)", "^" must be followed by a floating-point number
`
Contributor guide
Assessment
This issue has not been assessed yet.