Ticket #2531324 (closed enhancement)
Reporter Juan Ignacio Dopazo |
Opened: 10/22/11 Last modified: 05/10/12 Status: closed Type: enhancement Resolution: fixed |
Owner Dav Glass |
Target Release: 3.5.0 Priority: P3 (normal) |
|---|---|---|---|
| Summary: | Support regular expressions in the patterns configuration | ||
| Description: | For doing things like detecting if a module name is a css filename, the patterns configuration needs a little more power. Regular expressions would be a great tool instead of just prefixes. |
||
| Type: | enhancement | Observed in Version: | 3.4.1 |
| Component: | Loader | Severity: | S3 (normal) |
| Assigned To: | Dav Glass | Target Release: | 3.5.0 |
| Location: | Library Code | Priority: | P3 (normal) |
| Tags: | amd compatibility | Relates To: | |
| Browsers: | N/A | ||
| URL: | |||
| Test Information: | |||
Change History
|
Posted: 11/8/11
|
|
Posted: 11/8/11
|
|
Posted: 11/28/11
|
|
Posted: 11/28/11
Fantastic! |
|
Posted: 11/29/11
Fixes #2531324 - Added pattern.test function support for pattern loading |
|
Posted: 12/6/11
Fixes #2531324 - Added pattern.test function support for pattern loading |
|
Posted: 05/10/12
checkedin -> closed |
Jenny Donnelly
Instead of supporting RegEx's out of the box, I thought it was more flexible to add a test method to patterns. This way you can add any logic you want into the test method. Example:
https://gist.github.com/1401158