You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Chào bro, nay tôi thấy trong thư viện bro có một lỗi là nếu như concatBy có giá trị là string rỗng (ví dụ có dấu cách thì bỏ dấu cách), thì chương trình sẽ bị lỗi như sau:
...\node_modules\jsrmvi\lib\index.js:54
.replace(new RegExp("\\" + c + "+\\" + c, 'g'), c) // replace repeated c to single c (e.g. `a---b` to `a-b`)
^
SyntaxError: Invalid regular expression: /\+\/g: \ at end of pattern
Theo tôi thấy thì chắc cần có một cách để handle trường hợp đặc biệt này?
The text was updated successfully, but these errors were encountered:
Chào bro, nay tôi thấy trong thư viện bro có một lỗi là nếu như
concatBy
có giá trị là string rỗng (ví dụ có dấu cách thì bỏ dấu cách), thì chương trình sẽ bị lỗi như sau:Theo tôi thấy thì chắc cần có một cách để handle trường hợp đặc biệt này?
The text was updated successfully, but these errors were encountered: