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) {
242242 * more comma-separated tags optionally followed by `=` and the expected value.
243243 *
244244 * 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.
246247 *
247248 * Examples:
248249 * - `tag`
249250 * - `tag=value`
250251 * - `tag,tag2=value`
251252 * - `tag[foo bar]=value`
253+ *
254+ * Not allowed:
255+ * - `tag[[[foo bar]`
252256 */
253257private string expectationPattern ( ) {
254258 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
256260 tags = "((?:" + tag + ")(?:\\s*,\\s*" + tag + ")*)" and
257261 // In Python, we allow both `"` and `'` for strings, as well as the prefixes `bru`.
258262 // For example, `b"foo"`.
Original file line number Diff line number Diff line change @@ -242,17 +242,21 @@ private string getColumnString(TColumn column) {
242242 * more comma-separated tags optionally followed by `=` and the expected value.
243243 *
244244 * 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.
246247 *
247248 * Examples:
248249 * - `tag`
249250 * - `tag=value`
250251 * - `tag,tag2=value`
251252 * - `tag[foo bar]=value`
253+ *
254+ * Not allowed:
255+ * - `tag[[[foo bar]`
252256 */
253257private string expectationPattern ( ) {
254258 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
256260 tags = "((?:" + tag + ")(?:\\s*,\\s*" + tag + ")*)" and
257261 // In Python, we allow both `"` and `'` for strings, as well as the prefixes `bru`.
258262 // For example, `b"foo"`.
Original file line number Diff line number Diff line change @@ -242,17 +242,21 @@ private string getColumnString(TColumn column) {
242242 * more comma-separated tags optionally followed by `=` and the expected value.
243243 *
244244 * 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.
246247 *
247248 * Examples:
248249 * - `tag`
249250 * - `tag=value`
250251 * - `tag,tag2=value`
251252 * - `tag[foo bar]=value`
253+ *
254+ * Not allowed:
255+ * - `tag[[[foo bar]`
252256 */
253257private string expectationPattern ( ) {
254258 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
256260 tags = "((?:" + tag + ")(?:\\s*,\\s*" + tag + ")*)" and
257261 // In Python, we allow both `"` and `'` for strings, as well as the prefixes `bru`.
258262 // For example, `b"foo"`.
Original file line number Diff line number Diff line change @@ -242,17 +242,21 @@ private string getColumnString(TColumn column) {
242242 * more comma-separated tags optionally followed by `=` and the expected value.
243243 *
244244 * 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.
246247 *
247248 * Examples:
248249 * - `tag`
249250 * - `tag=value`
250251 * - `tag,tag2=value`
251252 * - `tag[foo bar]=value`
253+ *
254+ * Not allowed:
255+ * - `tag[[[foo bar]`
252256 */
253257private string expectationPattern ( ) {
254258 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
256260 tags = "((?:" + tag + ")(?:\\s*,\\s*" + tag + ")*)" and
257261 // In Python, we allow both `"` and `'` for strings, as well as the prefixes `bru`.
258262 // For example, `b"foo"`.
Original file line number Diff line number Diff line change @@ -242,17 +242,21 @@ private string getColumnString(TColumn column) {
242242 * more comma-separated tags optionally followed by `=` and the expected value.
243243 *
244244 * 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.
246247 *
247248 * Examples:
248249 * - `tag`
249250 * - `tag=value`
250251 * - `tag,tag2=value`
251252 * - `tag[foo bar]=value`
253+ *
254+ * Not allowed:
255+ * - `tag[[[foo bar]`
252256 */
253257private string expectationPattern ( ) {
254258 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
256260 tags = "((?:" + tag + ")(?:\\s*,\\s*" + tag + ")*)" and
257261 // In Python, we allow both `"` and `'` for strings, as well as the prefixes `bru`.
258262 // For example, `b"foo"`.
Original file line number Diff line number Diff line change @@ -242,17 +242,21 @@ private string getColumnString(TColumn column) {
242242 * more comma-separated tags optionally followed by `=` and the expected value.
243243 *
244244 * 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.
246247 *
247248 * Examples:
248249 * - `tag`
249250 * - `tag=value`
250251 * - `tag,tag2=value`
251252 * - `tag[foo bar]=value`
253+ *
254+ * Not allowed:
255+ * - `tag[[[foo bar]`
252256 */
253257private string expectationPattern ( ) {
254258 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
256260 tags = "((?:" + tag + ")(?:\\s*,\\s*" + tag + ")*)" and
257261 // In Python, we allow both `"` and `'` for strings, as well as the prefixes `bru`.
258262 // For example, `b"foo"`.
You can’t perform that action at this time.
0 commit comments