Skip to content

Commit

Permalink
Allow to set only bg color name in *_COLORS variable
Browse files Browse the repository at this point in the history
  • Loading branch information
mattirn committed Jan 2, 2021
1 parent 5489815 commit b9dbc01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion builtins/src/main/java/org/jline/builtins/Styles.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public class Styles {
private static final String PRNT_COLORS = "PRNT_COLORS";

private static final String KEY = "([a-z]{2}|\\*\\.[a-zA-Z0-9]+)";
private static final String VALUE = "[!~#]?[a-zA-Z0-9]+[a-z0-9-;]*";
private static final String VALUE = "([!~#]?[a-zA-Z0-9]+[a-z0-9-;]*)?";
private static final String VALUES = VALUE + "(," + VALUE + ")*";
private static final String STYLE_PATTERN = KEY + "=" + VALUES + "(:" + KEY + "=" + VALUES + ")*(:|)";

Expand Down

0 comments on commit b9dbc01

Please sign in to comment.