We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2950c17 commit 925813aCopy full SHA for 925813a
17--Sort_Without_Articles/index-jds.html
@@ -54,14 +54,14 @@
54
console.group('START bandsSorted');
55
// console.log(a+' || '+b);
56
57
- // console.log(a.match(articlesRegex));
+ // get index of where article (regex) starts or 0...
58
const aStart = a.match(articlesRegex)!==null ? a.match(articlesRegex)[0].length : 0;
59
- // console.log(aStart);
+ // get substring
60
a = a.substr(aStart);
61
62
- // console.log(b.match(articlesRegex));
63
const bStart = b.match(articlesRegex)!==null ? b.match(articlesRegex)[0].length : 0;
64
- // console.log(bStart);
65
b = b.substr(bStart);
66
67
console.log(a+' || '+b);
0 commit comments