Skip to content

Commit 6906d26

Browse files
author
Vladimir Kalmykov
authored
feature style brackets
1 parent ca685ff commit 6906d26

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

readme.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -185,15 +185,15 @@ subImport([
185185
{
186186
id: /([a-z0-9\.\-]*\.css)$/i,
187187
base: /components/([a-z0-9]*)\/assets\/([a-z0-9]*)$/i,
188-
path: '~/theme/components/[base:$1]/assets/[base:$2]/[id:$1]'
188+
path: '~/theme/components/<base:$1>/assets/<base:$2>/<id:$1>'
189189
}
190190
]);
191191
```
192192

193193
In this case, we get the three aliases:
194-
- `([a-z0-9\.\-]*\.css)` will become `[id:$1]` and will contain required filename;
195-
- First `([a-z0-9]*)` will become `[base:$1]` and will contain component name;
196-
- Second `([a-z0-9]*)` will become `[base:$2]` and will contain some directory inside assets.
194+
- `([a-z0-9\.\-]*\.css)` will become `<id:$1>` and will contain required filename;
195+
- First `([a-z0-9]*)` will become `<base:$1>` and will contain component name;
196+
- Second `([a-z0-9]*)` will become `<base:$2>` and will contain some directory inside assets.
197197

198198
Usage of approach of the regular expression is limited only by your imagination.
199199

0 commit comments

Comments
 (0)