Skip to content

Commit

Permalink
feat(chars): improve getContentAfterCharacter
Browse files Browse the repository at this point in the history
  • Loading branch information
chemzqm committed Dec 17, 2018
1 parent 40ab52f commit 025101d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/model/chars.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ export class Chars {
public static getContentAfterCharacter(line: string, character: number): string {
if (character >= line.length) return ''
let part = line.slice(character - line.length)
let ms = part.match(/^[\w\-]+/)
let ms = part.match(/^\S[\w\-]*/)
return ms ? ms[0] : ''
}
}

0 comments on commit 025101d

Please sign in to comment.