solana-developers / solana-actions

https://solana-developers.github.io/solana-actions/
Apache License 2.0
92 stars 38 forks source link

Fix Regex Pattern to Correctly Match Hyphenated Strings in Identifier Parsing" #23

Closed Jovian-Dsouza closed 3 weeks ago

Jovian-Dsouza commented 1 month ago

This PR fixes an issue with the regex pattern used for identifier parsing, where the original regex ^([\w\d]+:){2,} failed to match strings containing hyphens (e.g., solana-action:). The updated regex ^([\w\d\-]+:){2,} now correctly accounts for hyphenated strings by including hyphens in the character class.

Solves: #24