mirror of
https://github.com/ButlerLogic/action-autotag.git
synced 2025-09-08 06:04:05 +07:00
Added support for named groups when using regex pattern
This commit is contained in:
@ -19,6 +19,8 @@ export default class Regex {
|
||||
if (!content) {
|
||||
this._version = null
|
||||
// throw new Error(`Could not find pattern matching "${pattern.toString()}" in "${root}".`)
|
||||
} else if (content.groups && content.groups.version) {
|
||||
this._version = content.groups.version
|
||||
} else {
|
||||
this._version = content[1]
|
||||
}
|
||||
|
Reference in New Issue
Block a user