Skip to content
This repository was archived by the owner on Jul 28, 2025. It is now read-only.

Commit c64d2d3

Browse files
committed
inline [] supported
1 parent 4146936 commit c64d2d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/helpers/QueryHelper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export function inlineRegexInFunctionOf(columnId: string) {
1717
const wrappererKey = `_\\*~\``;
1818
const conditionalInitWithField = `[${wrappererKey}]{0,2}${columnId}[${wrappererKey}]{0,2}[:]{2}`;
1919
const thenRegex = `(^${conditionalInitWithField})(.*$)`;
20-
const elseRegex = `(.*)([(])(${conditionalInitWithField})(.*)([)])(.*$)`;
20+
const elseRegex = `(.*)([\\[(]{1})(${conditionalInitWithField})(.*)([)\\]]{1})(.*$)`;
2121
const finalExpression = `(?:(?=(^${conditionalInitWithField}))(${thenRegex})|(${elseRegex}))`;
2222
LOGGER.debug(`<=> inlineRegexInFunctionOf: ${finalExpression}`);
2323
return new RegExp(`${finalExpression}`, 'gm');

0 commit comments

Comments
 (0)