Skip to content

Commit

Permalink
修改demo 中提取 注解的正则,解决卡死问题
Browse files Browse the repository at this point in the history
  • Loading branch information
rwx committed Aug 9, 2023
1 parent dbc2e92 commit 4085321
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion demo-data.js
Original file line number Diff line number Diff line change
Expand Up @@ -1411,7 +1411,7 @@ function TEXT_get_jsDoc(name, cb) {
async: false,
dataType: 'text',
success: function (d) {
var t = d.match(/\/\*\*((.|\s)+?)\*\/\r\n.+?(?={\r\n)/gi);
var t = d.match(/(?<=,\s+?)\/\*(?:[\s\S]*?)\*\/\s+\w+:\s+function\([^\(\)]*?\)/gi);
$.each(t, function (i, n) {
if (n.indexOf(name) !== -1) {
cb && cb(n.replace(/ {4}/g, ''));
Expand Down

0 comments on commit 4085321

Please sign in to comment.