Merge "Redirect from query page to change page for commit ID"

This commit is contained in:
Dhruv Srivastava
2020-08-27 11:37:43 +00:00
committed by Gerrit Code Review

View File

@@ -31,6 +31,7 @@ import {GerritNav} from '../../core/gr-navigation/gr-navigation.js';
const LookupQueryPatterns = { const LookupQueryPatterns = {
CHANGE_ID: /^\s*i?[0-9a-f]{7,40}\s*$/i, CHANGE_ID: /^\s*i?[0-9a-f]{7,40}\s*$/i,
CHANGE_NUM: /^\s*[1-9][0-9]*\s*$/g, CHANGE_NUM: /^\s*[1-9][0-9]*\s*$/g,
COMMIT: /[0-9a-f]{40}/,
}; };
const USER_QUERY_PATTERN = /^owner:\s?("[^"]+"|[^ ]+)$/; const USER_QUERY_PATTERN = /^owner:\s?("[^"]+"|[^ ]+)$/;