Skip to content

Commit 5fd37a2

Browse files
committed
Update isupper
1 parent 29ef81e commit 5fd37a2

File tree

4 files changed

+1655
-1601
lines changed

4 files changed

+1655
-1601
lines changed

larkjs/lark.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ function list_repeat(list, count) {
306306
}
307307

308308
function isupper(a) {
309-
return /^[A-Z_$]*$/.test(a);
309+
return /^[^a-z]*[A-Z][^a-z]*$/.test(a);
310310
}
311311

312312
function rsplit(s, delimiter, limit) {
@@ -3981,4 +3981,5 @@ module.exports = {
39813981
Indenter,
39823982
PythonIndenter,
39833983
get_parser,
3984+
isupper,
39843985
};

0 commit comments

Comments
 (0)