Skip to content
This repository has been archived by the owner on Jun 21, 2022. It is now read-only.

Commit

Permalink
Merge pull request #132 from Elchi3/css-data-entities
Browse files Browse the repository at this point in the history
Use data/master for CSS_Ref and CSSRef
  • Loading branch information
jwhitlock committed May 30, 2017
2 parents 9da8c95 + e2c558b commit f71b001
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
12 changes: 6 additions & 6 deletions macros/CSSRef.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ if (slug) {
var htmlEscape = kuma.htmlEscape;
var rtlLocales = ['ar', 'he', 'fa'];
var propertiesUrl = "https://raw.githubusercontent.com/mdn/data/mdn/css/properties.json";
var atRulesUrl = "https://raw.githubusercontent.com/mdn/data/mdn/css/at-rules.json";
var selectorsUrl = "https://raw.githubusercontent.com/mdn/data/mdn/css/selectors.json";
var typesUrl = "https://raw.githubusercontent.com/mdn/data/mdn/css/types.json";
var syntaxesUrl = "https://raw.githubusercontent.com/mdn/data/mdn/css/syntaxes.json";
var unitsUrl = "https://raw.githubusercontent.com/mdn/data/mdn/css/units.json";
var propertiesUrl = "https://raw.githubusercontent.com/mdn/data/master/css/properties.json";
var atRulesUrl = "https://raw.githubusercontent.com/mdn/data/master/css/at-rules.json";
var selectorsUrl = "https://raw.githubusercontent.com/mdn/data/master/css/selectors.json";
var typesUrl = "https://raw.githubusercontent.com/mdn/data/master/css/types.json";
var syntaxesUrl = "https://raw.githubusercontent.com/mdn/data/master/css/syntaxes.json";
var unitsUrl = "https://raw.githubusercontent.com/mdn/data/master/css/units.json";
var data = {
properties: mdn.fetchJSONResource(propertiesUrl),
atRules: mdn.fetchJSONResource(atRulesUrl),
Expand Down
14 changes: 7 additions & 7 deletions macros/CSS_Ref.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@
defaults to ['standard'])
*/
var propertiesUrl = "https://raw.githubusercontent.com/mdn/data/mdn/css/properties.json";
var atRulesUrl = "https://raw.githubusercontent.com/mdn/data/mdn/css/at-rules.json";
var selectorsUrl = "https://raw.githubusercontent.com/mdn/data/mdn/css/selectors.json";
var typesUrl = "https://raw.githubusercontent.com/mdn/data/mdn/css/types.json";
var syntaxesUrl = "https://raw.githubusercontent.com/mdn/data/mdn/css/syntaxes.json";
var unitsUrl = "https://raw.githubusercontent.com/mdn/data/mdn/css/units.json";
var propertiesUrl = "https://raw.githubusercontent.com/mdn/data/master/css/properties.json";
var atRulesUrl = "https://raw.githubusercontent.com/mdn/data/master/css/at-rules.json";
var selectorsUrl = "https://raw.githubusercontent.com/mdn/data/master/css/selectors.json";
var typesUrl = "https://raw.githubusercontent.com/mdn/data/master/css/types.json";
var syntaxesUrl = "https://raw.githubusercontent.com/mdn/data/master/css/syntaxes.json";
var unitsUrl = "https://raw.githubusercontent.com/mdn/data/master/css/units.json";
var data = {
properties: mdn.fetchJSONResource(propertiesUrl),
atRules: mdn.fetchJSONResource(atRulesUrl),
Expand Down Expand Up @@ -68,7 +68,7 @@ function compareItems(itemA, itemB) {
}
function getItemsFromSyntax(syntax) {
var items = syntax.match(/[\w\-]+\([\w\-&;,#+*?\[\]\| ]*\)|@[\w\-]+/g) || [];
var items = syntax.match(/[\w\-]+\([\w\-<>,#+*?\[\]\| ]*\)|@[\w\-]+/g) || [];
for (var i = 0; i < items.length; i++) {
// Remove parameters
items[i] = items[i].replace(/\(.*?\)/, "()");
Expand Down

0 comments on commit f71b001

Please sign in to comment.