Skip to content

Commit

Permalink
Fix/allow @ in query translator array keys (#27)
Browse files Browse the repository at this point in the history
* fix: allow @ in query translator array keys

* chore: version bump
  • Loading branch information
jkoenig134 authored Mar 5, 2024
1 parent 8ce3103 commit 158cf61
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/querytranslator/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@js-soft/docdb-querytranslator",
"version": "1.1.2",
"version": "1.1.3",
"description": "Parse and pass URL queries to MongoDB and LokiJS query",
"homepage": "https://github.com/js-soft/ts-documentdb-access#readme",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion packages/querytranslator/src/QueryTranslator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { StringOperations } from "./StringOperations";
export class QueryTranslator {
private static defaultKeyRegex = /^[a-zA-Z_@][a-zA-Z@0-9-_]*(\.[a-zA-Z_@][a-zA-Z@0-9-_]*)*$/;
private static defaultValRegex?: RegExp = undefined;
private static defaultArrRegex = /^[a-zA-Zæøå0-9-_.]+(\[])?$/i;
private static defaultArrRegex = /^[a-zA-Z@æøå0-9-_.]+(\[])?$/i;

private readonly ops: string[];
private readonly alias: any;
Expand Down

0 comments on commit 158cf61

Please sign in to comment.