Skip to content

Commit

Permalink
Merge pull request #4 from clalarco/master
Browse files Browse the repository at this point in the history
Idea to solve env vars issue: modified regex pattern
  • Loading branch information
mambu committed Sep 24, 2012
2 parents 73d09df + 2d04952 commit 02be37f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/hudson/plugins/xshell/XShellBuilder.java
Expand Up @@ -28,8 +28,8 @@
public final class XShellBuilder extends Builder {

private static final Logger LOG = Logger.getLogger(XShellBuilder.class.getName());
private static final Pattern WIN_ENV_VAR_REGEX = Pattern.compile("%(\\S+?)%");
private static final Pattern UNIX_ENV_VAR_REGEX = Pattern.compile("\\$(\\S+)");
private static final Pattern WIN_ENV_VAR_REGEX = Pattern.compile("%(%([a-zA-Z0-9_]+)%)%");
private static final Pattern UNIX_ENV_VAR_REGEX = Pattern.compile("\\$([a-zA-Z0-9_]+)");

@Extension
public static final XShellDescriptor DESCRIPTOR = new XShellDescriptor();
Expand Down

0 comments on commit 02be37f

Please sign in to comment.