File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
arduino/cores/packagemanager Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -420,6 +420,8 @@ func convertLegacyPlatformToPluggableDiscovery(platform *cores.PlatformRelease)
420
420
}
421
421
}
422
422
423
+ var netPropRegexp = regexp .MustCompile (`\{upload\.network\.([^}]+)\}` )
424
+
423
425
func convertLegacyNetworkPatternToPluggableDiscovery (props * properties.Map , newToolName string ) * properties.Map {
424
426
pattern , ok := props .GetOk ("upload.network_pattern" )
425
427
if ! ok {
@@ -434,7 +436,6 @@ func convertLegacyNetworkPatternToPluggableDiscovery(props *properties.Map, newT
434
436
pattern = strings .ReplaceAll (pattern , "{network.password}" , "{upload.field.password}" )
435
437
}
436
438
// Search for "{upload.network.PROPERTY}"" and convert it to "{upload.port.property.PROPERTY}"
437
- netPropRegexp := regexp .MustCompile (`\{upload\.network\.([^}]+)\}` )
438
439
for netPropRegexp .MatchString (pattern ) {
439
440
netProp := netPropRegexp .FindStringSubmatch (pattern )[1 ]
440
441
pattern = strings .ReplaceAll (pattern , "{upload.network." + netProp + "}" , "{upload.port.properties." + netProp + "}" )
You can’t perform that action at this time.
0 commit comments