Skip to content

Commit 604ccdb

Browse files
committed
cleanup
1 parent a5dd4aa commit 604ccdb

File tree

3 files changed

+29
-25
lines changed

3 files changed

+29
-25
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ All available option classes and option names are hardcoded in `src\OptionsMappe
88

99
Think about options as an extra assertions you add to the pattern. To keep it simple, all options (so the option methods too) should have only 1 argument.
1010

11+
#### Adding new patterns
12+
13+
All available redy-to-use pattern classes are hardcoded in `src\Builder.php`. Refer to it, if you want add new or disable existing one.
14+
1115
#### Quantifiers
1216

1317
Available values for quantifiers as argument:
@@ -16,7 +20,7 @@ Available values for quantifiers as argument:
1620
- oneOrMore = `"oneOrMore"`, `"1>"`, `"1+"`
1721
- optional = `"optional"`, `"?"`, `"|"`
1822

19-
Examples: `->dot("zeroOrMore")` `->exact("hello worls", false, "1+")`
23+
Examples: `->exact("hello world", false, "1+")`
2024

2125
##### To Do
2226

composer.json

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
11
{
2-
"name": "maestroerror/eloquent-regex",
3-
"description": "Eloquent Regex brings the simplicity and elegance of Laravel's Eloquent ORM to regular expressions. Designed for Laravel developers, this package offers a fluent, intuitive interface for building and executing regex patterns in your PHP applications. Streamline your pattern matching with an eloquent touch",
4-
"type": "library",
5-
"license": "MIT",
6-
"autoload": {
7-
"psr-4": {
8-
"Maestroerror\\EloquentRegex\\": "src/"
9-
}
10-
},
11-
"authors": [
12-
{
13-
"name": "maestroerror",
14-
"email": "[email protected]"
15-
}
16-
],
17-
"minimum-stability": "dev",
18-
"require-dev": {
19-
"pestphp/pest": "3.x-dev"
20-
},
21-
"config": {
22-
"allow-plugins": {
23-
"pestphp/pest-plugin": true
24-
}
2+
"name": "maestroerror/eloquent-regex",
3+
"description": "Eloquent Regex brings the simplicity and elegance to regular expressions. Designed for Laravel developers, this package offers a fluent, intuitive interface for building and executing regex patterns in your PHP applications.",
4+
"type": "library",
5+
"license": "MIT",
6+
"autoload": {
7+
"psr-4": {
8+
"Maestroerror\\EloquentRegex\\": "src/"
259
}
10+
},
11+
"authors": [
12+
{
13+
"name": "maestroerror",
14+
"email": "[email protected]"
15+
}
16+
],
17+
"minimum-stability": "dev",
18+
"require-dev": {
19+
"pestphp/pest": "3.x-dev"
20+
},
21+
"config": {
22+
"allow-plugins": {
23+
"pestphp/pest-plugin": true
24+
}
25+
}
2626
}

src/Traits/BuilderPatternTraits/SpecificCharsTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public function dash() {
8383
return $this->escapeAndAdd("-");
8484
}
8585

86-
public function dot($quantifier = null): self {
86+
public function dot(): self {
8787
return $this->escapeAndAdd("."); // Matches dot "." character
8888
}
8989

0 commit comments

Comments
 (0)