Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
regexp develop
  • Loading branch information
kamil-kielczewski authored Aug 27, 2020
1 parent 9cc58ef commit 2efb322
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -416,6 +416,13 @@ You can create regular expression e.g. `/pattern/g` as follows
```js
[]["fill"]["constructor"]("return RegExp")()("pattern","g")
```

wchich after remove comma (by using multi-arguments technique without `bind`ing) looks as follows

```js
["pattern"]["concat"]("g")["reduce"]([]["fill"]["constructor"]("return RegExp")())
```

---

# Alternatives
Expand Down

0 comments on commit 2efb322

Please sign in to comment.