Skip to content

Commit

Permalink
Adjust README
Browse files Browse the repository at this point in the history
  • Loading branch information
fatfisz committed Mar 6, 2017
1 parent 243d1be commit 9202fd1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,11 @@ It is possible to specify an alias using a regular expression. To do that, eithe
}
```

In this example `'@namespace/foo-bar'` will become `'packages/foo/bar'`.
Using the config from this example `'@namespace/foo-bar'` will become `'packages/bar'`.

You can reference each the n-th matched group with `'\\n'` (`'\\0'` refers to the whole matched expression - in the example it would be `'@namespace/foo-bar'`).
You can reference the n-th matched group with `'\\n'` (`'\\0'` refers to the whole matched path).

To escape the backslash just use `'\\\\'`.
To use the backslash character (`\`) just escape it like so: `'\\\\'` (double escape is needed because of JSON already using `\` for escaping).

### Updating from babel-plugin-module-alias

Expand Down

0 comments on commit 9202fd1

Please sign in to comment.