Skip to content

Commit

Permalink
+reg
Browse files Browse the repository at this point in the history
  • Loading branch information
Keywos committed Mar 23, 2024
1 parent 94e3b46 commit 162113d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/views/editCode/cmView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ const getjsjson = (res) => {
// if (props.isJS) return false;
try {
const jsRegex =
/(?:function|var|let|const|if|else|return|try|catch|finally|typeof|delete|async|await)\b/;
/(?:function|var|let|const|if|else|return|try|catch|finally|typeof|delete|async|await)\s/;
if (jsRegex.test(res.slice(0, 4000))) {
setHJ();
console.log("---setHJ");
Expand Down

0 comments on commit 162113d

Please sign in to comment.