GothenburgBitFactory / GothenburgBitFactory/taskwarrior

[TW-1821] Escaping of '/'s in modify/substitution command confuses the parser

Open
#1,837 3 comments 0 reactions 1 assignee Claimed by @sebu06 View on GitHub
type:bug
Dominant language
C++
Stars
6.1k
Forks
423
Avg merge
1d 19h
Merged PRs (30d)
11

Description

_Johannes Schlatow on 2016-06-23T12:11:18Z says:_

This is related to TW-295. Although the test case is working properly, I noticed that the parses does not recognise the substitution in other (corner) cases.

The test case works by substituting '/two/' with "TWO" by using the following command:
```
task 1 modify /\\/two\\//TWO/
```

However, if I only want to match for '/two', the parser does not recognise the /match/replace/ pattern, i.e.:
```
task 1 modify /\\/two/TWO/
```
replaces the entire description with '//two/TWO/'.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.