Skip to content

Commit 19fc1fd

Browse files
dredavRokt33r
authored andcommitted
rename const
1 parent 5b63bed commit 19fc1fd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

browser/main/NoteList/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,15 @@ const { remote } = require('electron')
2626
const { dialog } = remote
2727
const WP_POST_PATH = '/wp/v2/posts'
2828

29-
const matchStartingTitleNumber = new RegExp('^([0-9]*\.?[0-9]+).*$')
29+
const regexMatchStartingTitleNumber = new RegExp('^([0-9]*\.?[0-9]+).*$')
3030

3131
function sortByCreatedAt (a, b) {
3232
return new Date(b.createdAt) - new Date(a.createdAt)
3333
}
3434

3535
function sortByAlphabetical (a, b) {
36-
const matchA = matchStartingTitleNumber.exec(a.title)
37-
const matchB = matchStartingTitleNumber.exec(b.title)
36+
const matchA = regexMatchStartingTitleNumber.exec(a.title)
37+
const matchB = regexMatchStartingTitleNumber.exec(b.title)
3838

3939
if (matchA && matchA.length === 2 && matchB && matchB.length === 2) {
4040
// Both note titles are starting with a float. We will compare it now.

0 commit comments

Comments
 (0)