Skip to content

Commit

Permalink
style: update regex comment (#243)
Browse files Browse the repository at this point in the history
  • Loading branch information
woldtwerk committed Aug 16, 2023
1 parent 23decd4 commit 095c704
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ export const excludeRE = [
export const importAsRE = /^.*\sas\s+/
export const separatorRE = /[,[\]{}\n]|\bimport\b/g

/** | |
* destructing case&ternary non-call | id |
* ↓ ↓ ↓ | |*/
/** | |
* destructing case&ternary non-call inheritance | id |
* ↓ ↓ ↓ | |*/
export const matchRE = /(^|\.\.\.|(?:\bcase|\?)\s+|[^\w_$\/)]|(?:\bextends)\s+)([\w_$]+)\s*(?=[.()[\]}}:;?+\-*&|`<>,\n]|\b(?:instanceof|in)\b|$|(?<=extends\s+\w+)\s+{)/g

const regexRE = /\/[^\s]*?(?<!\\)(?<!\[[^\]]*)\/[gimsuy]*/g
Expand Down

0 comments on commit 095c704

Please sign in to comment.