quotation-marks-regex
Regular expression for matching quotation marks (source)
Install
$ yarn add @shelf/quotation-marks-regex
Usage
const regex = require('@shelf/quotation-marks-regex');
const input = `"hello" 'hello' ,hello‘ «hello» ”hello” “hello“ ’hello’ ‚hello‛ „hello„ ‹hello›`;
// strip all quotation marks
const output = input.replace(new RegExp(regex, 'g'), '');
// => hello hello hello hello hello hello hello hello hello hello hello
Publish
$ git checkout master
$ yarn version
$ yarn publish
$ git push origin master --tags
License
MIT © Shelf