Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
esentis committed Apr 7, 2022
2 parents 3147b63 + f15e925 commit 599ff81
Show file tree
Hide file tree
Showing 8 changed files with 317 additions and 59 deletions.
28 changes: 28 additions & 0 deletions .github/ISSUE_TEMPLATE/BUG_REPORT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---
name: "\U0001F41B Bug Report"
about: "If something isn't working as expected."
title: ""
labels: "i: bug, i: needs triage"
assignees: "akritikos <3"
---

## Current Behavior

A clear and concise description of the behavior.

## Expected behavior/code

A clear and concise description of what you expected to happen (or code).

### Environment

- Operating System
- `flutter doctor -v`

### Possible Solution

`Only if you have suggestions on a fix for the bug`

### Additional context/Screenshots

Add any other context about the problem here. If applicable, add screenshots to help explain.
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/FEATURE_REQUEST.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: "\U0001F680 Feature Request"
about: "I have a suggestion (and may want to implement it)!"
title: ""
labels: "i: enhancement, i: needs triage"
assignees: "akritikos <3"
---

## Is your feature request related to a problem?

A clear and concise description of what the problem is.
`I have an issue when [...]`

## Describe the feature you'd like

A clear and concise description of what you want to happen. Add any considered drawbacks.

## Describe alternatives you've considered

A clear and concise description of any alternative solutions or features you've considered.
1 change: 1 addition & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
blank_issues_enabled: false
22 changes: 21 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,24 @@
# [0.4.1] - Minor improvements & New Extensions
# [0.4.2] - Minor improvements & New Extensions

- Returns the `String` after a character / word.

```dart
after(String pattern)
```

- Returns the `String` before a character / word.

```dart
before(String pattern)
```

- Gets Jaro distance to check `String` similarity. The higher the number the similar the two `String`s/

```dart
getJaro(String wordToCompare)
```

## [0.4.1] - Minor improvements & New Extensions

- Converts the `String` to a `bool` value if possible.

Expand Down
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,14 @@ String foo = 'esentis';
int distance = foo.getLevenshtein('esen'); // '3';
```

- **getJaro(String word)**

```dart
String t1 = 'esentis';
String t2 = 'esen';
double = t1.getJaro(t2); // returns 0.8571428571428571
```

- **charCount(String char)**

```dart
Expand Down Expand Up @@ -504,3 +512,17 @@ String quote = t.quote; // returns "esentis"
String t = ' is this reality ?';
String quote = t.trimAll; // returns "is this reality ?"
```

- **before(String pattern)**

```dart
String test = 'brother what a day today';
String beforeString = test.before('brother'); // returns 'hello '
```

- **after(String pattern)**

```dart
String test = 'brother what a day today';
String beforeString = test.after('brother'); // returns ' what a day today'
```

0 comments on commit 599ff81

Please sign in to comment.