quote-scanner
Scanner quote postion for skip quote content
var QuoteScanner = ;
install
npm install quote-scanner --save
test
mocha
API
QuoteScanner(str)
- {string}
str
required
var qs = "a'b'c'd\\'d'";
pos
The postion of quote
// [{start: 1, end: 3 }, { start: 5, end: 10}]
qs.pos
isIn(index)
Check the postion is in string
- {int}
index
required
The start position of string
qs