Skip to content

Commit 49a3c90

Browse files
author
Charlike Mike Reagent
committed
fix usage
1 parent 245949f commit 49a3c90

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ str.match(mentionsRegex({flags: 'g'}))
3535
//=> [' @tunnckoCore ', ' @face ']
3636

3737
str.match(mentionsRegex({flags: 'g', startSpace: false}))
38-
//=> [' @tunnckoCore ', ' @face ', '@face ']
38+
//=> ['@first ', '@tunnckoCore ', '@face ']
3939

4040
str.match(mentionsRegex({flags: 'g', endSpace: false}))
4141
//=> [' @tunnckoCore ', ' @face ', ' @al', ' @last']

test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@
99

1010
var mentionsRegex = require('./index');
1111
var str = '@first github @tunnckoCore and @face some @al.so [email protected] global @last'
12-
var res = str.match(mentionsRegex({flags: 'g', dot: true}))
12+
var res = str.match(mentionsRegex({flags: 'g', startSpace: false}))
1313
console.log(res)

0 commit comments

Comments
 (0)