gchq / gchq/CyberChef

Bug report: subsection operations has problems with double characters

Open
#1,217 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
JavaScript
Stars
35.8k
Forks
4.1k
Avg merge
2d 26m
Merged PRs (30d)
33

Description

**Describe the bug**

When using the subsection operation, different sections are extracted if double characters occur.

**To Reproduce**

**Recipe**
Fork('\\n','\\n',false)
Subsection('...(.)',false,false,false)
To_Upper_case('All')

**Input:**
zazaza
bbbbbb
abcdef
aafedd

https://gchq.github.io/CyberChef/#recipe=Fork('%5C%5Cn','%5C%5Cn',false)Subsection('...(.)',false,false,false)To_Upper_case('All')&input=emF6YXphCmJiYmJiYgphYmNkZWYKYWFmZWRk

**Expected behaviour**
There should be a capital letter in the same place in each line.

**Screenshots**
![image](https://user-images.githubusercontent.com/6574969/123317160-f83e2900-d52d-11eb-9167-e628800b8606.png)

**Desktop (if relevant, please complete the following information):**
- OS: Windows 10 21H1
- Browser: Chrome Version 91.0.4472.114
- CyberChef version: Version 9.28.0

**Additional context**
Add any other context about the problem here.

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.