Skip to content

Commit

Permalink
Update isupper
Browse files Browse the repository at this point in the history
  • Loading branch information
thekevinscott committed Jan 25, 2025
1 parent 29ef81e commit 5fd37a2
Show file tree
Hide file tree
Showing 4 changed files with 1,655 additions and 1,601 deletions.
3 changes: 2 additions & 1 deletion larkjs/lark.js
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ function list_repeat(list, count) {
}

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

function rsplit(s, delimiter, limit) {
Expand Down Expand Up @@ -3981,4 +3981,5 @@ module.exports = {
Indenter,
PythonIndenter,
get_parser,
isupper,
};
Loading

0 comments on commit 5fd37a2

Please sign in to comment.