mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-21 23:36:16 -04:00
BugFix: compare odd size elements, like empty line
This commit is contained in:
parent
b61a1b4edb
commit
390d5927a4
2 changed files with 3 additions and 3 deletions
|
@ -249,7 +249,7 @@ const SeqUtils = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return a.localeCompare(b);
|
||||||
},
|
},
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
|
@ -10,8 +10,8 @@ import TestRegister from "../../TestRegister.js";
|
||||||
TestRegister.addTests([
|
TestRegister.addTests([
|
||||||
{
|
{
|
||||||
name: "SeqUtils - Numeric sort photos",
|
name: "SeqUtils - Numeric sort photos",
|
||||||
input: "Photo-1.jpg\nPhoto-4.jpg\nPhoto-2.jpg\nPhoto-3.jpg\n",
|
input: "Photo-1.jpg\nPhoto-4.jpg\nPhoto-2.jpg\nPhoto-3.jpg",
|
||||||
expectedOutput: "Photo-1.jpg\nPhoto-2.jpg\nPhoto-3.jpg\nPhoto-4.jpg\n",
|
expectedOutput: "Photo-1.jpg\nPhoto-2.jpg\nPhoto-3.jpg\nPhoto-4.jpg",
|
||||||
recipeConfig: [
|
recipeConfig: [
|
||||||
{
|
{
|
||||||
"op": "Sort",
|
"op": "Sort",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue