aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2021-07-12 11:11:05 +0200
committerJohn Ankarström <john@ankarstrom.se>2021-07-12 11:11:05 +0200
commitc3e0b6572b8c45f81ff7f6e2fab216b32b55c299 (patch)
treeef8ae514ecf5f84ca669d23db7b59ab26b23d65c
parenta187908c0e007ca4d1ab2ba7fbe15590fa48aaf5 (diff)
downloadxutil-c3e0b6572b8c45f81ff7f6e2fab216b32b55c299.tar.gz
isort: Support pointers
-rwxr-xr-xisort4
1 files changed, 2 insertions, 2 deletions
diff --git a/isort b/isort
index af7828e..eecde11 100755
--- a/isort
+++ b/isort
@@ -11,8 +11,8 @@ $semicolon = s/;$/,/;
# Sort words.
@words = sort {
- ($x = $a) =~ s/^\*//;
- ($y = $b) =~ s/^\*//;
+ ($x = $a) =~ s/^\*+//;
+ ($y = $b) =~ s/^\*+//;
$x cmp $y
} split /\s+/;