Pinned Loading
-
-
ignoring all texts within parentheses
ignoring all texts within parentheses 1function ignoreParentheses (value: string) {
2const regex = /\([^)]*\)/g
3// Example: abc(def)
4const treatedValue: value.replace(regex, "")
5return treatedValue // result: abc
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.