Closed ZSkycat closed 6 years ago
When I only need to find the first one, I don't need g flag.
g
scenes to be used: https://github.com/ZSkycat/ghost-progress-webpack-plugin/blob/master/src/helper.ts#L80
Sounds like a valid use-case. I don't think it should accept regex flags though, but rather an option called onlyFirst to match only the first item.
onlyFirst
Agree, I will modify my commit
When I only need to find the first one, I don't need
g
flag.scenes to be used: https://github.com/ZSkycat/ghost-progress-webpack-plugin/blob/master/src/helper.ts#L80