Skip to content

Commit 337dbdd

Browse files
committed
add mising g flag for glob-regex
1 parent 35e9eb5 commit 337dbdd

File tree

4 files changed

+30
-30
lines changed

4 files changed

+30
-30
lines changed

package-lock.json

Lines changed: 26 additions & 26 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "steam-rom-manager",
3-
"version": "2.2.1",
3+
"version": "2.2.2",
44
"license": "GPL-3.0",
55
"description": "An app for managing ROMs in Steam",
66
"author": {

src/renderer/lib/parsers/glob-regex.parser.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export class GlobRegexParser implements GenericParser {
4141
}
4242

4343
private validate(fileGlob: string, suppressSlashError: boolean = false) {
44-
let testRegExpr = /\${\/(.+)\/([ui]{0,2})(?:\|(.*?))?}/i;
44+
let testRegExpr = /\${\/(.+)\/([uig]{0,3})(?:\|(.*?))?}/i;
4545
let match = testRegExpr.exec(fileGlob);
4646
if (match === null)
4747
return this.lang.errors.noRegex__md;
@@ -184,7 +184,7 @@ export class GlobRegexParser implements GenericParser {
184184
}
185185

186186
private makeRegexRegex(fileGlob: string) {
187-
let match = /\${\/(.+)\/([ui]{0,2})(?:\|(.*?))?}/.exec(fileGlob);
187+
let match = /\${\/(.+)\/([uig]{0,3})(?:\|(.*?))?}/.exec(fileGlob);
188188
if (match) {
189189
return { regex: new RegExp(match[1], match[2] || ''), replaceText: match[3] };
190190
}

src/shared/lang/english/markdown/glob-regex-parser-input.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ Untouched text will remain by default, so if you see some trailing characters be
4444

4545
### Supported flags
4646

47-
Allowed flags are `i` and `u`.
47+
Allowed flags are `i`, `g` and `u`.
4848

4949
## Limitations
5050

0 commit comments

Comments
 (0)