Skip to content

Commit

Permalink
Adds dash description
Browse files Browse the repository at this point in the history
  • Loading branch information
tinganho committed Apr 27, 2015
1 parent 0f78f59 commit 100b6ce
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion README.md
Expand Up @@ -41,10 +41,15 @@ Each rewrite rule is a string with the syntax:
Begin with `!` for inverted URL matching.

## Use defined params
Just wrap the defined param with `()` and access it with `$n`. This is defined in JS `.replace` in https://developer.mozilla.org/en/docs/JavaScript/Reference/Global_Objects/String/replace
Just wrap the defined param with `()` and access it with `$n`. This is defined in JS `.replace` in https://developer.mozilla.org/en/docs/JavaScript/Reference/Global_Objects/String/replace.

`^/blog/(.*) /$1`

## Dash
A dash indicates that no substitution should be performed.

`^/blog/(.*) - [L]`

## Flags
### Last [L]
If a path matches, any subsequent rewrite rules will be disregarded.
Expand Down

0 comments on commit 100b6ce

Please sign in to comment.