Skip to content

Commit

Permalink
fix: should able to support query system indices start with . (#122)
Browse files Browse the repository at this point in the history
[feat|fix|refactor: summary title of the PR](fix: should able to support
query system indices start with .)

Refs: #120

Signed-off-by: seven <[email protected]>
  • Loading branch information
Blankll authored Oct 17, 2024
1 parent 48a5513 commit 1d240d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/common/monaco/lexerRules.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { keywords } from './keywords.ts';

export const executeActions = {
regexp: /^(GET|DELETE|POST|PUT)\s\w+/,
regexp: /^(GET|DELETE|POST|PUT)\s+[a-zA-Z0-9_\/-?\-&,.]*/,
decorationClassName: 'action-execute-decoration',
};

Expand All @@ -28,7 +28,7 @@ export const search = {
// The main tokenizer for our languages
tokenizer: {
root: [
[/^(GET|POST|PUT|DELETE)(\s+[a-zA-Z0-9_\/-?\-&,]*)/, ['type', 'regexp']],
[/^(GET|POST|PUT|DELETE)(\s+[a-zA-Z0-9_\/-?\-&,.]*)/, ['type', 'regexp']],
{
regex: '{',
action: {
Expand Down

0 comments on commit 1d240d5

Please sign in to comment.