Skip to content
Permalink
Browse files

editor addin.sct: Fix handling of line breaks in SortAscending, SortD…

…escending (osdn.net ticket #40266) (2)
  • Loading branch information
sdottaka committed Mar 23, 2020
1 parent 043e87a commit 77d89c5e59c2fa68566e99ec47ab94bb7b25f9d3
Showing with 1 addition and 1 deletion.
  1. +1 −1 Plugins/dlls/editor addin.sct
@@ -117,7 +117,7 @@ function SortAscending(Text) {

function SortDescending(Text) {
var eol = Text.match(/\r\n|\n|\r/);
var lines = Text.split("\r\n");
var lines = Text.split(eol);

if (lines.length == 1) {
return Text;

0 comments on commit 77d89c5

Please sign in to comment.
You can’t perform that action at this time.