Skip to content

Commit 9f62f51

Browse files
authored
Rename regex to mojo-regex to avoid name collision with the python regex libray (#143)
* Rename regex to mojo-regex to avoid name collision with the python regex library Signed-off-by: Manuel Saelices <[email protected]> * Rename package to mojo-regex Signed-off-by: Manuel Saelices <[email protected]> * Bump build number Signed-off-by: Manuel Saelices <[email protected]> * New revision Signed-off-by: Manuel Saelices <[email protected]> * Change build number back to 0 Signed-off-by: Manuel Saelices <[email protected]> * Point to last revision Signed-off-by: Manuel Saelices <[email protected]> --------- Signed-off-by: Manuel Saelices <[email protected]>
1 parent b579f56 commit 9f62f51

File tree

3 files changed

+11
-7
lines changed

3 files changed

+11
-7
lines changed

recipes/regex/README.md renamed to recipes/mojo-regex/README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Mojo Regex
22
Regular Expressions Library for Mojo
33

4-
`regex` is a regex library featuring a hybrid DFA/NFA engine architecture that automatically optimizes pattern matching based on complexity.
4+
`mojo-regex` is a regex library featuring a hybrid DFA/NFA engine architecture that automatically optimizes pattern matching based on complexity.
55

66
It aims to provide a similar interface as the [re](https://docs.python.org/3/library/re.html) stdlib package while leveraging Mojo's performance capabilities.
77

@@ -61,7 +61,7 @@ This software is in an early stage of development. Even though it is functional,
6161
2. **Add the Package** (at the top level of your project):
6262

6363
```bash
64-
pixi add regex
64+
pixi add mojo-regex
6565
```
6666

6767
## Example Usage
@@ -192,6 +192,10 @@ mojo benchmarks/bench_engine.mojo
192192
193193
Contributions are welcome! If you'd like to contribute, please follow the contribution guidelines in the [CONTRIBUTING.md](CONTRIBUTING.md) file in the repository.
194194
195+
## Acknowledgments
196+
197+
Thanks to Claude Code for helping a lot with the implementation and testing of the mojo-regex library, and to the Mojo community for their support and feedback.
198+
195199
## License
196200
197201
mojo is licensed under the [MIT license](LICENSE).
File renamed without changes.

recipes/regex/recipe.yaml renamed to recipes/mojo-regex/recipe.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
about:
2-
description: "# Mojo Regex\nRegular Expressions Library for Mojo\n\n`regex` is a\
2+
description: "# Mojo Regex\nRegular Expressions Library for Mojo\n\n`mojo-regex` is a\
33
\ regex library featuring a hybrid DFA/NFA engine architecture that automatically\
44
\ optimizes pattern matching based on complexity.\n\nIt aims to provide a similar\
55
\ interface as the [re](https://docs.python.org/3/library/re.html) stdlib package\
@@ -13,17 +13,17 @@ build:
1313
number: 0
1414
script:
1515
- mkdir -p ${PREFIX}/lib/mojo
16-
- mojo package src/regex -o ${PREFIX}/lib/mojo/regex.mojopkg
16+
- mojo package src/regex -o ${PREFIX}/lib/mojo/mojo-regex.mojopkg
1717
context:
1818
version: 13.4.2
1919
package:
20-
name: regex
21-
version: 0.1.0
20+
name: mojo-regex
21+
version: 0.2.1
2222
requirements:
2323
host:
2424
- max =25.4.0
2525
run:
2626
- ${{ pin_compatible('max') }}
2727
source:
2828
- git: https://github.com/msaelices/mojo-regex.git
29-
rev: b37e0e5c7d0548449d35fff2b419cf17eb91827c
29+
rev: cc187a5987143b0eb7d9497e6ddb7546f2296e9c

0 commit comments

Comments
 (0)