You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- **Character Pattern**: Matches any characters except line breaks.
23
+
- **Followed by a lookahead**: Ensures the match ends at the end of the line, before another @ symbol, or before punctuation followed by whitespace or end of line.
24
+
- **This allows spaces within file paths while properly handling path boundaries**.
25
+
- **Non-Greedy (`*?`)**: Ensures the smallest possible match.
25
26
- `|`: Logical OR.
26
27
- `problems\b`:
27
28
- **Exact Word ('problems')**: Matches the exact word 'problems'.
@@ -40,6 +41,7 @@ Mention regex:
40
41
- **Summary**:
41
42
- The regex effectively matches:
42
43
- Mentions that are file or folder paths starting with '/' and can contain spaces within the path (e.g., 'my folder/my file.txt').
44
+
The regex now properly handles paths with multiple spaces and ensures the entire path is captured.
43
45
- URLs that start with a protocol (like 'http://') followed by any non-whitespace characters (including query parameters).
0 commit comments