WIP - add extractor, generate snippet_data
This commit is contained in:
17
node_modules/remark-parse/lib/locate/break.js
generated
vendored
Normal file
17
node_modules/remark-parse/lib/locate/break.js
generated
vendored
Normal file
@ -0,0 +1,17 @@
|
||||
'use strict'
|
||||
|
||||
module.exports = locate
|
||||
|
||||
function locate(value, fromIndex) {
|
||||
var index = value.indexOf('\n', fromIndex)
|
||||
|
||||
while (index > fromIndex) {
|
||||
if (value.charAt(index - 1) !== ' ') {
|
||||
break
|
||||
}
|
||||
|
||||
index--
|
||||
}
|
||||
|
||||
return index
|
||||
}
|
||||
Reference in New Issue
Block a user