File tree Expand file tree Collapse file tree 6 files changed +36
-12
lines changed
cpp/ql/test/TestUtilities
csharp/ql/test/TestUtilities
java/ql/test/TestUtilities
ruby/ql/test/TestUtilities Expand file tree Collapse file tree 6 files changed +36
-12
lines changed Original file line number Diff line number Diff line change @@ -242,17 +242,21 @@ private string getColumnString(TColumn column) {
242
242
* more comma-separated tags optionally followed by `=` and the expected value.
243
243
*
244
244
* Tags must be only letters, digits, `-` and `_` (note that the first character
245
- * must not be a digit), but can contain anything enclosed in a square brackets.
245
+ * must not be a digit), but can contain anything enclosed in a single set of
246
+ * square brackets.
246
247
*
247
248
* Examples:
248
249
* - `tag`
249
250
* - `tag=value`
250
251
* - `tag,tag2=value`
251
252
* - `tag[foo bar]=value`
253
+ *
254
+ * Not allowed:
255
+ * - `tag[[[foo bar]`
252
256
*/
253
257
private string expectationPattern ( ) {
254
258
exists ( string tag , string tags , string value |
255
- tag = "[A-Za-z-_](?:[A-Za-z-_0-9]|\\[[^\\]]*\\])*" and
259
+ tag = "[A-Za-z-_](?:[A-Za-z-_0-9]|\\[[^\\]\\] ]*\\])*" and
256
260
tags = "((?:" + tag + ")(?:\\s*,\\s*" + tag + ")*)" and
257
261
// In Python, we allow both `"` and `'` for strings, as well as the prefixes `bru`.
258
262
// For example, `b"foo"`.
Original file line number Diff line number Diff line change @@ -242,17 +242,21 @@ private string getColumnString(TColumn column) {
242
242
* more comma-separated tags optionally followed by `=` and the expected value.
243
243
*
244
244
* Tags must be only letters, digits, `-` and `_` (note that the first character
245
- * must not be a digit), but can contain anything enclosed in a square brackets.
245
+ * must not be a digit), but can contain anything enclosed in a single set of
246
+ * square brackets.
246
247
*
247
248
* Examples:
248
249
* - `tag`
249
250
* - `tag=value`
250
251
* - `tag,tag2=value`
251
252
* - `tag[foo bar]=value`
253
+ *
254
+ * Not allowed:
255
+ * - `tag[[[foo bar]`
252
256
*/
253
257
private string expectationPattern ( ) {
254
258
exists ( string tag , string tags , string value |
255
- tag = "[A-Za-z-_](?:[A-Za-z-_0-9]|\\[[^\\]]*\\])*" and
259
+ tag = "[A-Za-z-_](?:[A-Za-z-_0-9]|\\[[^\\]\\] ]*\\])*" and
256
260
tags = "((?:" + tag + ")(?:\\s*,\\s*" + tag + ")*)" and
257
261
// In Python, we allow both `"` and `'` for strings, as well as the prefixes `bru`.
258
262
// For example, `b"foo"`.
Original file line number Diff line number Diff line change @@ -242,17 +242,21 @@ private string getColumnString(TColumn column) {
242
242
* more comma-separated tags optionally followed by `=` and the expected value.
243
243
*
244
244
* Tags must be only letters, digits, `-` and `_` (note that the first character
245
- * must not be a digit), but can contain anything enclosed in a square brackets.
245
+ * must not be a digit), but can contain anything enclosed in a single set of
246
+ * square brackets.
246
247
*
247
248
* Examples:
248
249
* - `tag`
249
250
* - `tag=value`
250
251
* - `tag,tag2=value`
251
252
* - `tag[foo bar]=value`
253
+ *
254
+ * Not allowed:
255
+ * - `tag[[[foo bar]`
252
256
*/
253
257
private string expectationPattern ( ) {
254
258
exists ( string tag , string tags , string value |
255
- tag = "[A-Za-z-_](?:[A-Za-z-_0-9]|\\[[^\\]]*\\])*" and
259
+ tag = "[A-Za-z-_](?:[A-Za-z-_0-9]|\\[[^\\]\\] ]*\\])*" and
256
260
tags = "((?:" + tag + ")(?:\\s*,\\s*" + tag + ")*)" and
257
261
// In Python, we allow both `"` and `'` for strings, as well as the prefixes `bru`.
258
262
// For example, `b"foo"`.
Original file line number Diff line number Diff line change @@ -242,17 +242,21 @@ private string getColumnString(TColumn column) {
242
242
* more comma-separated tags optionally followed by `=` and the expected value.
243
243
*
244
244
* Tags must be only letters, digits, `-` and `_` (note that the first character
245
- * must not be a digit), but can contain anything enclosed in a square brackets.
245
+ * must not be a digit), but can contain anything enclosed in a single set of
246
+ * square brackets.
246
247
*
247
248
* Examples:
248
249
* - `tag`
249
250
* - `tag=value`
250
251
* - `tag,tag2=value`
251
252
* - `tag[foo bar]=value`
253
+ *
254
+ * Not allowed:
255
+ * - `tag[[[foo bar]`
252
256
*/
253
257
private string expectationPattern ( ) {
254
258
exists ( string tag , string tags , string value |
255
- tag = "[A-Za-z-_](?:[A-Za-z-_0-9]|\\[[^\\]]*\\])*" and
259
+ tag = "[A-Za-z-_](?:[A-Za-z-_0-9]|\\[[^\\]\\] ]*\\])*" and
256
260
tags = "((?:" + tag + ")(?:\\s*,\\s*" + tag + ")*)" and
257
261
// In Python, we allow both `"` and `'` for strings, as well as the prefixes `bru`.
258
262
// For example, `b"foo"`.
Original file line number Diff line number Diff line change @@ -242,17 +242,21 @@ private string getColumnString(TColumn column) {
242
242
* more comma-separated tags optionally followed by `=` and the expected value.
243
243
*
244
244
* Tags must be only letters, digits, `-` and `_` (note that the first character
245
- * must not be a digit), but can contain anything enclosed in a square brackets.
245
+ * must not be a digit), but can contain anything enclosed in a single set of
246
+ * square brackets.
246
247
*
247
248
* Examples:
248
249
* - `tag`
249
250
* - `tag=value`
250
251
* - `tag,tag2=value`
251
252
* - `tag[foo bar]=value`
253
+ *
254
+ * Not allowed:
255
+ * - `tag[[[foo bar]`
252
256
*/
253
257
private string expectationPattern ( ) {
254
258
exists ( string tag , string tags , string value |
255
- tag = "[A-Za-z-_](?:[A-Za-z-_0-9]|\\[[^\\]]*\\])*" and
259
+ tag = "[A-Za-z-_](?:[A-Za-z-_0-9]|\\[[^\\]\\] ]*\\])*" and
256
260
tags = "((?:" + tag + ")(?:\\s*,\\s*" + tag + ")*)" and
257
261
// In Python, we allow both `"` and `'` for strings, as well as the prefixes `bru`.
258
262
// For example, `b"foo"`.
Original file line number Diff line number Diff line change @@ -242,17 +242,21 @@ private string getColumnString(TColumn column) {
242
242
* more comma-separated tags optionally followed by `=` and the expected value.
243
243
*
244
244
* Tags must be only letters, digits, `-` and `_` (note that the first character
245
- * must not be a digit), but can contain anything enclosed in a square brackets.
245
+ * must not be a digit), but can contain anything enclosed in a single set of
246
+ * square brackets.
246
247
*
247
248
* Examples:
248
249
* - `tag`
249
250
* - `tag=value`
250
251
* - `tag,tag2=value`
251
252
* - `tag[foo bar]=value`
253
+ *
254
+ * Not allowed:
255
+ * - `tag[[[foo bar]`
252
256
*/
253
257
private string expectationPattern ( ) {
254
258
exists ( string tag , string tags , string value |
255
- tag = "[A-Za-z-_](?:[A-Za-z-_0-9]|\\[[^\\]]*\\])*" and
259
+ tag = "[A-Za-z-_](?:[A-Za-z-_0-9]|\\[[^\\]\\] ]*\\])*" and
256
260
tags = "((?:" + tag + ")(?:\\s*,\\s*" + tag + ")*)" and
257
261
// In Python, we allow both `"` and `'` for strings, as well as the prefixes `bru`.
258
262
// For example, `b"foo"`.
You can’t perform that action at this time.
0 commit comments