Skip to content

Commit

Permalink
Merge pull request chms#2 from t7ko/feature/support-more-delimiters-i…
Browse files Browse the repository at this point in the history
…n-lists-and-contexts

Feature/support more delimiters in lists and contexts
  • Loading branch information
t7ko authored Mar 8, 2018
2 parents 377ad64 + 340cc36 commit de3dffc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public class JdotxtFilterPanel extends JPanel {
public static final short VISIBILITY_CONTEXTS = 2;
public static final short VISIBILITY_ALL = VISIBILITY_PROJECTS + VISIBILITY_CONTEXTS;

public static final int DEFAULT_WIDTH = 150;
public static final int DEFAULT_WIDTH = 250;

private TaskBag taskBag;

Expand Down
2 changes: 1 addition & 1 deletion src/com/todotxt/todotxttouch/task/ContextParser.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

class ContextParser {
private final static Pattern CONTEXT_PATTERN = Pattern
.compile("(?:^|\\s)@(\\w+)", Pattern.UNICODE_CHARACTER_CLASS);
.compile("(?:^|\\s)@([\\w_\\.\\-\\:\\/]+)", Pattern.UNICODE_CHARACTER_CLASS);
private static final ContextParser INSTANCE = new ContextParser();

private ContextParser() {
Expand Down
2 changes: 1 addition & 1 deletion src/com/todotxt/todotxttouch/task/ProjectParser.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

class ProjectParser {
private final static Pattern CONTEXT_PATTERN = Pattern
.compile("(?:^|\\s)\\+(\\w+)", Pattern.UNICODE_CHARACTER_CLASS);
.compile("(?:^|\\s)\\+([\\w_\\.\\-\\:\\/]+)", Pattern.UNICODE_CHARACTER_CLASS);
private static final ProjectParser INSTANCE = new ProjectParser();

private ProjectParser() {
Expand Down

0 comments on commit de3dffc

Please sign in to comment.