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

[Bug]: Using ` re \u{0028} ` causes runtime exception. #43672

Open
gayaldassanayake opened this issue Dec 3, 2024 · 0 comments
Open

[Bug]: Using ` re \u{0028} ` causes runtime exception. #43672

gayaldassanayake opened this issue Dec 3, 2024 · 0 comments
Labels
Area/Compiler needTriage The issue has to be inspected and labeled manually Type/Bug userCategory/Compilation

Comments

@gayaldassanayake
Copy link
Contributor

Description

string:RegExp regBracketSplitter = re `\u{0028}`;
string[] descriptionParts = regBracketSplitter.split(description);

causes the below runtime error.

error: java.util.regex.PatternSyntaxException {"message":"Unclosed group near index 1
("}
        at ballerina.lang.regexp.0:split(regexp.bal:437)
           gayaldassanayake.dulaj.0:getCleanInvoiceItemDescription(main.bal:15)
           gayaldassanayake.dulaj.0:main(main.bal:10)

Steps to Reproduce

Do a bal run on the above sample code

Affected Version(s)

2201.10.x

OS, DB, other environment details and versions

No response

Related area

-> Compilation

Related issue(s) (optional)

No response

Suggested label(s) (optional)

No response

Suggested assignee(s) (optional)

No response

@ballerina-bot ballerina-bot added needTriage The issue has to be inspected and labeled manually userCategory/Compilation labels Dec 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area/Compiler needTriage The issue has to be inspected and labeled manually Type/Bug userCategory/Compilation
Projects
None yet
Development

No branches or pull requests

2 participants