Skip to content

Commit

Permalink
build: fix readme lint out of order message
Browse files Browse the repository at this point in the history
  • Loading branch information
dougwilson committed Aug 13, 2019
1 parent 2719bef commit f75ed7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/lint-readme.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ README_CONTENTS.split(NEWLINE_REGEXP).forEach(function (line, lineidx) {
if (!(header = STORE_HEADER_REGEXP.exec(line))) {
expect(lineidx, 'session store header', line)
} else if (prev && prev[2].replace(/^[^/]+\//, '').localeCompare(header[2].replace(/^[^/]+\//, '')) > 0) {
expect(lineidx, (header[2] + ' to be alphabetically after ' + prev[2]), line)
expect(lineidx, (header[2] + ' to be alphabetically before ' + prev[2]), line)
state = 2
} else {
state = 2
Expand Down

0 comments on commit f75ed7e

Please sign in to comment.