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

Dav Glass

Posted: 11/8/11
  • location changed to Library Code
  • milestone changed to 3.5.0
  • priority changed to P3 (normal)
  • status changed from new to accepted

Dav Glass

Posted: 11/8/11
  • estimated changed from 0 to 0.5
  • remaining changed from 0 to 0.5
  • sprint changed to sprint 1

Dav Glass

Posted: 11/28/11
  • completed changed from 0 to 0.25
  • remaining changed from 0.5 to 0
  • status changed from accepted to checkedin

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

Juan Ignacio Dopazo

YUI Contributor

Posted: 11/28/11

Fantastic!

Dav Glass

Posted: 11/29/11
  • resolution changed to fixed

Fixes #2531324 - Added pattern.test function support for pattern loading
View Commit: 1432d74ee0c3518fda7940079b977d634b1e2bbb

Dav Glass

Posted: 12/6/11

Fixes #2531324 - Added pattern.test function support for pattern loading
View Commit: 1432d74ee0c3518fda7940079b977d634b1e2bbb

Jenny Donnelly

YUI Developer

Posted: 05/10/12
  • status changed from checkedin to closed

checkedin -> closed