Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/allow @ in query translator array keys #27

Merged
merged 2 commits into from
Mar 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading