Update src/core.js

Updated regex