Skip to content

Commit

Permalink
fix: fix number only Sockets SyntaxError bug
Browse files Browse the repository at this point in the history
  • Loading branch information
isuke committed Jan 8, 2024
1 parent 7b5195f commit 948c6af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/advanced-poe-filter.pegjs
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ numOperator = '<=' / '>=' / '<' / '>' / '='
matchOperator = '==' / '='
rarity = 'Normal' / 'Magic' / 'Rare' / 'Unique'
socketType = 'R' / 'G' / 'B' / 'W' / 'A' / 'D'
socketTypes = vals:socketType|1..6| {
socketTypes = vals:socketType|0..6| {
const order = ['R', 'G', 'B', 'W', 'A', 'D']
return vals.sort((left, right) => order.indexOf(left) - order.indexOf(right)).join('')
}
Expand Down

0 comments on commit 948c6af

Please sign in to comment.