Escape special regular expression characters

Escape `{` to allow the regular expression to be used as is in Java as
well.
Also escape `.`, for consistency with the first CSS regular expression.

Signed-off-by: thc202 <thc202@gmail.com>
main
thc202 3 years ago
parent 5f5d9df7ef
commit 850bedf3f4
No known key found for this signature in database
GPG Key ID: F29DBD3500548AA2

@ -2421,7 +2421,7 @@
"cats": [ "cats": [
66 66
], ],
"css": "\\.p-(?:toast|calendar|dialog-mask|menuitem-text)(?:-content)?{", "css": "\\.p-(?:toast|calendar|dialog-mask|menuitem-text)(?:-content)?\\{",
"description": "PrimeNG is a rich set of open-source UI Components for Angular.", "description": "PrimeNG is a rich set of open-source UI Components for Angular.",
"icon": "PrimeNG.svg", "icon": "PrimeNG.svg",
"oss": true, "oss": true,
@ -2435,7 +2435,7 @@
"cats": [ "cats": [
66 66
], ],
"css": ".p-(?:toast|calendar|dialog-mask|menuitem-text)(?:-content)?{", "css": "\\.p-(?:toast|calendar|dialog-mask|menuitem-text)(?:-content)?\\{",
"description": "PrimeReact is a rich set of open-source UI Components for React.", "description": "PrimeReact is a rich set of open-source UI Components for React.",
"icon": "PrimeReact.svg", "icon": "PrimeReact.svg",
"oss": true, "oss": true,
@ -2449,7 +2449,7 @@
"cats": [ "cats": [
66 66
], ],
"css": ".p-(?:toast|calendar|dialog-mask|menuitem-text)(?:-content)?{", "css": "\\.p-(?:toast|calendar|dialog-mask|menuitem-text)(?:-content)?\\{",
"description": "PrimeVue is a rich set of open-source UI Components for Vue.js.", "description": "PrimeVue is a rich set of open-source UI Components for Vue.js.",
"icon": "PrimeVue.svg", "icon": "PrimeVue.svg",
"oss": true, "oss": true,