# Correct way to specify rules globs?

**URL:** <https://forum.cursor.com/t/correct-way-to-specify-rules-globs/71752>\
**Category:** Help\
**Created:** [March 28, 2025, 10:44am UTC](https://forum.cursor.com/t/correct-way-to-specify-rules-globs/71752 "2025-03-28T10:44:54Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![KyleM](https://avatars.discourse-cdn.com/v4/letter/k/47e85d/32.png) [@KyleM](https://forum.cursor.com/u/KyleM)\
**Post date:** [September 4, 2025, 12:12am UTC](https://forum.cursor.com/t/correct-way-to-specify-rules-globs/71752/8 "2025-09-04T00:12:32Z")

</div>

_ **please** _ document the glob syntax. no spaces after commas for example is huge as the IDE has no visual indication of a space when editing a rule.

Space after comma:

 ![image](https://us1.discourse-cdn.com/cursor1/original/3X/5/2/52649db30ffce8b53e925fca6695acf25b0e5bf4.png)

No space after comma:

 ![image](https://us1.discourse-cdn.com/cursor1/original/3X/8/f/8f3b1fa8e561188e14ad31e82e08bce052f26b8f.png)

Also syntax support for groups, optional, negate, etc would be _really nice_. For example, `/**/*.{j,t}s?(x)` or `/tests/**/*.{spec,test}.{js,ts}`

---

_[View the full topic](https://forum.cursor.com/t/correct-way-to-specify-rules-globs/71752)._
