You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Register a rewrite rule with a `regex` to use for matching paths, a `structure` to use for the replacement patter, and an optional validation `fn` to supplement the regex when matching.
Run rewrite [rules](#rule) on the given `file`. If a rule matches
128
128
the file, the `file.path` will be rewritten using `locals`, and values
@@ -134,7 +134,7 @@ from the `file` and `file.data`.
134
134
*`locals`**{Object}**
135
135
*`returns`**{String}**: Returns the formatted path or the original `file.path` if no rewrite rules match the file.
136
136
137
-
### [.match](index.js#L122)
137
+
### [.match](index.js#L123)
138
138
139
139
Calls `RegExp.exec()` on `file.path`, using the regex from the given rewrite `rule`. If the file matches, the match arguments are returned, otherwise `null`.
0 commit comments