Opened 11 years ago
Closed 8 years ago
#7751 closed defect (invalid)
dojox.dtl.filter.strings.slugify bug
Reported by: | rsaccon | Owned by: | rsaccon |
---|---|---|---|
Priority: | low | Milestone: | future |
Component: | DojoX DTL | Version: | 1.2beta |
Keywords: | dojox dtl slugify | Cc: | |
Blocked By: | Blocking: |
Description (last modified by )
the dtl slugify does not work in my particular case when used inside templates loaded via include tag (tested in firefox 3.0.3).
Original source for slugify filter:
slugify: function(value){ value = value.replace(/[^\w\s-]/g, "").toLowerCase(); return value.replace(/[\-\s]+/g, "-"); }
Problem:
typeof(value) is "object"
Workround:
slugify: function(value){ // summary: Converts to lowercase, removes // non-alpha chars and converts spaces to hyphens value = value.toString().replace(/[^\w\s-]/g, "").toLowerCase(); return value.replace(/[\-\s]+/g, "-"); }
Change History (8)
comment:1 Changed 11 years ago by
Component: | General → Dojox |
---|---|
Owner: | changed from anonymous to Neil Roberts |
comment:2 Changed 11 years ago by
Milestone: | 1.2 → tbd |
---|---|
Priority: | high → normal |
comment:3 Changed 11 years ago by
Component: | Dojox → DojoX DTL |
---|
comment:4 Changed 11 years ago by
Milestone: | tbd → future |
---|
comment:5 Changed 11 years ago by
Status: | new → assigned |
---|
comment:6 Changed 8 years ago by
Description: | modified (diff) |
---|---|
Priority: | high → low |
comment:7 Changed 8 years ago by
Owner: | changed from Neil Roberts to rsaccon |
---|---|
Status: | assigned → pending |
comment:8 Changed 8 years ago by
Resolution: | → invalid |
---|---|
Status: | pending → closed |
Because we get so many tickets, we often need to return them to the initial reporter for more information. If that person does not reply within 14 days, the ticket will automatically be closed, and that has happened in this case. If you still are interested in pursuing this issue, feel free to add a comment with the requested information and we will be happy to reopen the ticket if it is still valid. Thanks!
rsaccon, i'm going through old tickets. is this still a problem?