Skip to content

Commit 4bec957

Browse files
committed
Island: Remove extra + from windows environment variable regex
1 parent 638db3d commit 4bec957

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

monkey/monkey_island/cc/ui/src/components/configuration-components/ValidationFormats.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const linuxPathStartsWithTildeRegex = /^~/ // path starts with `~`
99

1010

1111
const windowsAbsolutePathRegex = /^([A-Za-z]:(\\|\/))/ // path starts like `C:\` OR `C:/`
12-
const windowsEnvVarNonNumeric = '[A-Za-z#\\$\'\\(\\)\\*\\+,\\-\\.\\?@\\[\\]_`\\{\\}~+ ]'
12+
const windowsEnvVarNonNumeric = '[A-Za-z#\\$\'\\(\\)\\*\\+,\\-\\.\\?@\\[\\]_`\\{\\}~ ]'
1313
const windowsPathStartsWithEnvVariableRegex = new RegExp(
1414
`^%(${windowsEnvVarNonNumeric}+(${windowsEnvVarNonNumeric}|\\d)*)%`
1515
) // path starts like `$` OR `%abc%`

0 commit comments

Comments
 (0)