mirror of
https://github.com/flynx/pWiki.git
synced 2025-10-29 10:00:08 +00:00
minor fix
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
1842223a79
commit
670d8b5760
@ -87,7 +87,7 @@ var getMarkdownOffset = function(markdown, text, i){
|
||||
i = i ?? text.length
|
||||
var m = 0
|
||||
// walk both strings skipping/counting non-matching stuff...
|
||||
for(var n=0; n < i; n++, m++){
|
||||
for(var n=0; n <= i; n++, m++){
|
||||
var c = text[n]
|
||||
var p = m
|
||||
// walk to next match...
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user