Skip to content

Commit

Permalink
Don't use startsWith
Browse files Browse the repository at this point in the history
  • Loading branch information
anandthakker committed Jan 24, 2018
1 parent 711c6cf commit 72149c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/style-spec/expression/is_constant.js
Expand Up @@ -16,7 +16,7 @@ function isFeatureConstant(e: Expression) {
e.name === 'id'
) {
return false;
} else if (e.name.startsWith('filter-')) {
} else if (/^filter-/.test(e.name)) {
return false;
}
}
Expand Down

0 comments on commit 72149c1

Please sign in to comment.