Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow projects and contexts to contain non-Latin characters #31

Merged
merged 2 commits into from
May 31, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/patterns.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,14 @@ export namespace Patterns {
// The context and project patterns are prefixed with non-word boundary (\B) as they
// begin with non-word chars (+@). The tag pattern is prefixed with a word bounday (\b)
// as tags begin with a word char.
export const ContextRegex = /\B@\S+\b/g;
export const ContextRegex = /\B@\S+/g;
export const PriorityWithLeadingSpaceRegex = /^\s*[(][A-Z][)]\B/g;
export const PriorityWithTrailingSpaceRegex = /[(][A-Z][)]\s/;
export const PriorityOnlyRegex = /[(][A-Z][)]\B/g;
export const ProjectRegex = /\B\+\S+\b/g;
export const TagRegex = /\b[^\s:]+:[^\s]+\b/g;
export const ProjectRegex = /\B\+\S+/g;
export const TagRegex = /[^\s:]+:\S+/g;
export const CreationDateRegex = /^(?:[(][A-Z][)] )?\s*(\d{4}-\d{2}-\d{2})\s/g;
export const TagValueRegex = /\b([^\s:]+):(\S+)\b/g;
export const TagValueRegex = /([^\s:]+):(\S+)/g;
export const TagDateRegexString = "\\b(#TAG#):(\\d{4}-\\d{2}-\\d{2})\\b";
export const CompletedGlobalRegex = /^\s*x .*$/g;
export const CompletedRegex = /^\s*x\s/;
Expand Down