This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 258684 - Please add regex or wildcard support into the customs.json file.
Summary: Please add regex or wildcard support into the customs.json file.
Status: CLOSED INVALID
Alias: None
Product: web
Classification: Unclassified
Component: HTML Editor (show other bugs)
Version: 8.1
Hardware: PC Other
: P3 normal (vote)
Assignee: Milutin Kristofic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-04-06 14:36 UTC by Christian Lenz
Modified: 2017-11-27 17:20 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Lenz 2016-04-06 14:36:41 UTC
If you have a custom tag like:

<test /> I can add this element to the customs.json file and I see no error this is fine.

When I have <test my-attr="2" /> I can add my-attr to the custom.json file too and everything is fine.

Often you have a lot of custom tags and attr and sometimes to identify your custom things, you have a prefix my myattr-color myattr-size myattr-whatever. So it would be nice to support wildcards or regex for elements and attributes inside the customs.json file that I can write:

"attributes": {
   "myattr-*: {} // or
   "myattr-.*?": {}
}

"elements": {
   "ion-.*?": {} // All ionic tags have this prefix
}


Regards

Chris
Comment 1 Christian Lenz 2017-11-27 17:20:48 UTC
I will close it, because it will handled now at the JIRA board: https://issues.apache.org/jira/browse/NETBEANS-186. Please feel free to change the state of the ticket.