Skip to content

Commit

Permalink
Simplify sharp check (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
Connormiha authored Jul 15, 2024
1 parent c93dfa3 commit a95f0a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cubic-bezier.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

var self = window.CubicBezier = function(coordinates) {
if (typeof coordinates === 'string') {
if(coordinates.indexOf('#') === 0) {
if(coordinates[0] === '#') {
coordinates = coordinates.slice(1);
}

Expand Down

0 comments on commit a95f0a4

Please sign in to comment.