Skip to content

Commit 925813a

Browse files
committed
done with wesbos#17.
1 parent 2950c17 commit 925813a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

17--Sort_Without_Articles/index-jds.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,14 @@
5454
console.group('START bandsSorted');
5555
// console.log(a+' || '+b);
5656

57-
// console.log(a.match(articlesRegex));
57+
// get index of where article (regex) starts or 0...
5858
const aStart = a.match(articlesRegex)!==null ? a.match(articlesRegex)[0].length : 0;
59-
// console.log(aStart);
59+
// get substring
6060
a = a.substr(aStart);
6161

62-
// console.log(b.match(articlesRegex));
62+
// get index of where article (regex) starts or 0...
6363
const bStart = b.match(articlesRegex)!==null ? b.match(articlesRegex)[0].length : 0;
64-
// console.log(bStart);
64+
// get substring
6565
b = b.substr(bStart);
6666

6767
console.log(a+' || '+b);

0 commit comments

Comments
 (0)