fix
This commit is contained in:
parent
3df638871c
commit
a260bae917
2 changed files with 2 additions and 2 deletions
|
@ -20,4 +20,4 @@ let str = `
|
|||
alert( str.match(regexp) ); // [b]hello![/b],[quote][url]http://google.com[/url][/quote]
|
||||
```
|
||||
|
||||
Please note that we had to escape a slash for the closing tag `pattern:[/\1]`, because normally the slash closes the pattern.
|
||||
Please note that besides escaping `pattern:[` and `pattern:]`, we had to escape a slash for the closing tag `pattern:[\/\1]`, because normally the slash closes the pattern.
|
||||
|
|
|
@ -15,7 +15,7 @@ Normal:
|
|||
[url] [b]http://google.com[/b] [/url]
|
||||
[quote] [b]text[/b] [/quote]
|
||||
|
||||
Impossible:
|
||||
Can't happen:
|
||||
[b][b]text[/b][/b]
|
||||
```
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue