Use ~ instead of ^

Fixing the ^ added in #16
Merge pull request #17 from ljharb/patch-1

Use ~ instead of ^