Skip to content

Commit c7b689a

Browse files
committed
[INTERNAL] lib/processors/jsdoc: allow single character property names
The regex used to check for valid property names mistakenly required at least two characters in an identifier-like property name. Cherry-picked from UI5/openui5@ead6e7fd6 which was a follow-up to UI5/openui5/9b2a1914b
1 parent db66c0d commit c7b689a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/processors/jsdoc/lib/ui5/template/publish.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -889,7 +889,7 @@ function normalizeWS(text) {
889889

890890
}
891891

892-
const rStartsWithValidPropertyName = /^(?:[^'"][^\s.]+|'(?:[^'\\]|\\.)*'|"(?:[^"\\]|\\.)*")/;
892+
const rStartsWithValidPropertyName = /^(?:[^'"\s.][^\s.]*|'(?:[^'\\]|\\.)*'|"(?:[^"\\]|\\.)*")/;
893893

894894
function isNestedPropertyName(name) {
895895
const match = rStartsWithValidPropertyName.exec(name);

0 commit comments

Comments
 (0)