Skip to content

Commit

Permalink
3.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
null8626 committed Mar 30, 2024
1 parent c8d6c80 commit 535f5d9
Show file tree
Hide file tree
Showing 23 changed files with 71 additions and 72 deletions.
8 changes: 4 additions & 4 deletions bindings/java/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ plugins {
}

group 'com.github.null8626'
version '3.1.1'
version '3.1.2'
description 'A tiny package that removes common unicode confusables/homoglyphs from strings.'

repositories {
Expand All @@ -14,7 +14,7 @@ repositories {

jar {
archiveBaseName = 'decancer'
archiveVersion = '3.1.1'
archiveVersion = '3.1.2'

from('./bin') {
include '*.dll'
Expand All @@ -28,7 +28,7 @@ publishing {
mavenJava(MavenPublication) {
groupId 'com.github.null8626'
artifactId 'decancer'
version '3.1.1'
version '3.1.2'

from components.java

Expand All @@ -39,7 +39,7 @@ publishing {
licenses {
license {
name = 'MIT License'
url = 'https://github.com/null8626/decancer/blob/v3.1.1/LICENSE'
url = 'https://github.com/null8626/decancer/blob/v3.1.2/LICENSE'
}
}

Expand Down
2 changes: 1 addition & 1 deletion bindings/native/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "decancer_native"
version = "3.1.1"
version = "3.1.2"
edition = "2021"
publish = false

Expand Down
2 changes: 1 addition & 1 deletion bindings/node/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "decancer_node"
version = "3.1.1"
version = "3.1.2"
edition = "2021"
publish = false

Expand Down
4 changes: 2 additions & 2 deletions bindings/node/npm/android-arm-eabi/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@vierofernando/decancer-android-arm-eabi",
"version": "3.1.1",
"version": "3.1.2",
"os": [
"android"
],
Expand Down Expand Up @@ -30,4 +30,4 @@
"sanitizer",
"confusables"
]
}
}
4 changes: 2 additions & 2 deletions bindings/node/npm/android-arm64/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@vierofernando/decancer-android-arm64",
"version": "3.1.1",
"version": "3.1.2",
"os": [
"android"
],
Expand Down Expand Up @@ -30,4 +30,4 @@
"sanitizer",
"confusables"
]
}
}
4 changes: 2 additions & 2 deletions bindings/node/npm/darwin-arm64/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@vierofernando/decancer-darwin-arm64",
"version": "3.1.1",
"version": "3.1.2",
"os": [
"darwin"
],
Expand Down Expand Up @@ -30,4 +30,4 @@
"sanitizer",
"confusables"
]
}
}
4 changes: 2 additions & 2 deletions bindings/node/npm/darwin-x64/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@vierofernando/decancer-darwin-x64",
"version": "3.1.1",
"version": "3.1.2",
"os": [
"darwin"
],
Expand Down Expand Up @@ -30,4 +30,4 @@
"sanitizer",
"confusables"
]
}
}
4 changes: 2 additions & 2 deletions bindings/node/npm/linux-arm-gnueabihf/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@vierofernando/decancer-linux-arm-gnueabihf",
"version": "3.1.1",
"version": "3.1.2",
"os": [
"linux"
],
Expand Down Expand Up @@ -30,4 +30,4 @@
"sanitizer",
"confusables"
]
}
}
4 changes: 2 additions & 2 deletions bindings/node/npm/linux-arm64-gnu/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@vierofernando/decancer-linux-arm64-gnu",
"version": "3.1.1",
"version": "3.1.2",
"os": [
"linux"
],
Expand Down Expand Up @@ -33,4 +33,4 @@
"sanitizer",
"confusables"
]
}
}
4 changes: 2 additions & 2 deletions bindings/node/npm/linux-arm64-musl/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@vierofernando/decancer-linux-arm64-musl",
"version": "3.1.1",
"version": "3.1.2",
"os": [
"linux"
],
Expand Down Expand Up @@ -33,4 +33,4 @@
"sanitizer",
"confusables"
]
}
}
4 changes: 2 additions & 2 deletions bindings/node/npm/linux-x64-gnu/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@vierofernando/decancer-linux-x64-gnu",
"version": "3.1.1",
"version": "3.1.2",
"os": [
"linux"
],
Expand Down Expand Up @@ -33,4 +33,4 @@
"sanitizer",
"confusables"
]
}
}
4 changes: 2 additions & 2 deletions bindings/node/npm/linux-x64-musl/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@vierofernando/decancer-linux-x64-musl",
"version": "3.1.1",
"version": "3.1.2",
"os": [
"linux"
],
Expand Down Expand Up @@ -33,4 +33,4 @@
"sanitizer",
"confusables"
]
}
}
4 changes: 2 additions & 2 deletions bindings/node/npm/win32-arm64-msvc/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@vierofernando/decancer-win32-arm64-msvc",
"version": "3.1.1",
"version": "3.1.2",
"os": [
"win32"
],
Expand Down Expand Up @@ -30,4 +30,4 @@
"sanitizer",
"confusables"
]
}
}
4 changes: 2 additions & 2 deletions bindings/node/npm/win32-ia32-msvc/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@vierofernando/decancer-win32-ia32-msvc",
"version": "3.1.1",
"version": "3.1.2",
"os": [
"win32"
],
Expand Down Expand Up @@ -30,4 +30,4 @@
"sanitizer",
"confusables"
]
}
}
4 changes: 2 additions & 2 deletions bindings/node/npm/win32-x64-msvc/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@vierofernando/decancer-win32-x64-msvc",
"version": "3.1.1",
"version": "3.1.2",
"os": [
"win32"
],
Expand Down Expand Up @@ -30,4 +30,4 @@
"sanitizer",
"confusables"
]
}
}
4 changes: 2 additions & 2 deletions bindings/node/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "decancer",
"version": "3.1.1",
"version": "3.1.2",
"description": "A tiny package that removes common unicode confusables/homoglyphs from strings.",
"author": "null8626",
"keywords": [
Expand Down Expand Up @@ -54,4 +54,4 @@
]
}
}
}
}
2 changes: 1 addition & 1 deletion bindings/wasm/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "decancer_wasm"
version = "3.1.1"
version = "3.1.2"
edition = "2021"
publish = false

Expand Down
2 changes: 1 addition & 1 deletion bindings/wasm/bin/decancer.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion core/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "decancer"
version = "3.1.1"
version = "3.1.2"
edition = "2021"
authors = ["null (https://github.com/null8626)"]
description = "A tiny package that removes common unicode confusables/homoglyphs from strings."
Expand Down
66 changes: 33 additions & 33 deletions core/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ A tiny package that removes common unicode confusables/homoglyphs from strings.
In your `Cargo.toml`:

```toml
decancer = "3.1.1"
decancer = "3.1.2"
```

</details>
Expand Down Expand Up @@ -68,7 +68,7 @@ In your code:

```html
<script type="module">
import init from 'https://cdn.jsdelivr.net/gh/null8626/decancer@v3.1.1/bindings/wasm/bin/decancer.min.js'
import init from 'https://cdn.jsdelivr.net/gh/null8626/decancer@v3.1.2/bindings/wasm/bin/decancer.min.js'
const decancer = await init()
</script>
Expand All @@ -89,7 +89,7 @@ repositories {
}
dependencies {
implementation 'com.github.null8626:decancer:v3.1.1'
implementation 'com.github.null8626:decancer:v3.1.2'
}
```

Expand All @@ -111,7 +111,7 @@ In your `pom.xml`:
<dependency>
<groupId>com.github.null8626</groupId>
<artifactId>decancer</artifactId>
<version>v3.1.1</version>
<version>v3.1.2</version>
</dependency>
</dependencies>
```
Expand All @@ -131,34 +131,34 @@ $ ./gradlew build --warning-mode all

### Download

- [Download for ARM64 macOS (11.0+, Big Sur+)](https://github.com/null8626/decancer/releases/download/v3.1.1/decancer-aarch64-apple-darwin.zip)
- [Download for ARM64 iOS](https://github.com/null8626/decancer/releases/download/v3.1.1/decancer-aarch64-apple-ios.zip)
- [Download for Apple iOS Simulator on ARM6](https://github.com/null8626/decancer/releases/download/v3.1.1/decancer-aarch64-apple-ios-sim.zip)
- [Download for ARM64 Android](https://github.com/null8626/decancer/releases/download/v3.1.1/decancer-aarch64-linux-android.zip)
- [Download for ARM64 Windows MSVC](https://github.com/null8626/decancer/releases/download/v3.1.1/decancer-aarch64-pc-windows-msvc.zip)
- [Download for ARM64 Linux (kernel 4.1, glibc 2.17+)](https://github.com/null8626/decancer/releases/download/v3.1.1/decancer-aarch64-unknown-linux-gnu.zip)
- [Download for ARM64 Linux with MUSL](https://github.com/null8626/decancer/releases/download/v3.1.1/decancer-aarch64-unknown-linux-musl.zip)
- [Download for ARMv6 Linux (kernel 3.2, glibc 2.17)](https://github.com/null8626/decancer/releases/download/v3.1.1/decancer-arm-unknown-linux-gnueabi.zip)
- [Download for ARMv5TE Linux (kernel 4.4, glibc 2.23)](https://github.com/null8626/decancer/releases/download/v3.1.1/decancer-armv5te-unknown-linux-gnueabi.zip)
- [Download for ARMv7-A Android](https://github.com/null8626/decancer/releases/download/v3.1.1/decancer-armv7-linux-androideabi.zip)
- [Download for ARMv7-A Linux (kernel 4.15, glibc 2.27)](https://github.com/null8626/decancer/releases/download/v3.1.1/decancer-armv7-unknown-linux-gnueabi.zip)
- [Download for ARMv7-A Linux, hardfloat (kernel 3.2, glibc 2.17)](https://github.com/null8626/decancer/releases/download/v3.1.1/decancer-armv7-unknown-linux-gnueabihf.zip)
- [Download for 32-bit Linux w/o SSE (kernel 3.2, glibc 2.17)](https://github.com/null8626/decancer/releases/download/v3.1.1/decancer-i586-unknown-linux-gnu.zip)
- [Download for 32-bit MSVC (Windows 7+)](https://github.com/null8626/decancer/releases/download/v3.1.1/decancer-i686-pc-windows-msvc.zip)
- [Download for 32-bit FreeBSD](https://github.com/null8626/decancer/releases/download/v3.1.1/decancer-i686-unknown-freebsd.zip)
- [Download for 32-bit Linux (kernel 3.2+, glibc 2.17+)](https://github.com/null8626/decancer/releases/download/v3.1.1/decancer-i686-unknown-linux-gnu.zip)
- [Download for PPC64LE Linux (kernel 3.10, glibc 2.17)](https://github.com/null8626/decancer/releases/download/v3.1.1/decancer-powerpc64le-unknown-linux-gnu.zip)
- [Download for RISC-V Linux (kernel 4.20, glibc 2.29)](https://github.com/null8626/decancer/releases/download/v3.1.1/decancer-riscv64gc-unknown-linux-gnu.zip)
- [Download for S390x Linux (kernel 3.2, glibc 2.17)](https://github.com/null8626/decancer/releases/download/v3.1.1/decancer-s390x-unknown-linux-gnu.zip)
- [Download for SPARC Solaris 11, illumos](https://github.com/null8626/decancer/releases/download/v3.1.1/decancer-sparcv9-sun-solaris.zip)
- [Download for Thumb2-mode ARMv7-A Linux with NEON (kernel 4.4, glibc 2.23)](https://github.com/null8626/decancer/releases/download/v3.1.1/decancer-thumbv7neon-unknown-linux-gnueabihf.zip)
- [Download for 64-bit macOS (10.12+, Sierra+)](https://github.com/null8626/decancer/releases/download/v3.1.1/decancer-x86_64-apple-darwin.zip)
- [Download for 64-bit iOS](https://github.com/null8626/decancer/releases/download/v3.1.1/decancer-x86_64-apple-ios.zip)
- [Download for 64-bit MSVC (Windows 7+)](https://github.com/null8626/decancer/releases/download/v3.1.1/decancer-x86_64-pc-windows-msvc.zip)
- [Download for 64-bit FreeBSD](https://github.com/null8626/decancer/releases/download/v3.1.1/decancer-x86_64-unknown-freebsd.zip)
- [Download for 64-bit illumos](https://github.com/null8626/decancer/releases/download/v3.1.1/decancer-x86_64-unknown-illumos.zip)
- [Download for 64-bit Linux (kernel 3.2+, glibc 2.17+)](https://github.com/null8626/decancer/releases/download/v3.1.1/decancer-x86_64-unknown-linux-gnu.zip)
- [Download for 64-bit Linux with MUSL](https://github.com/null8626/decancer/releases/download/v3.1.1/decancer-x86_64-unknown-linux-musl.zip)
- [Download for ARM64 macOS (11.0+, Big Sur+)](https://github.com/null8626/decancer/releases/download/v3.1.2/decancer-aarch64-apple-darwin.zip)
- [Download for ARM64 iOS](https://github.com/null8626/decancer/releases/download/v3.1.2/decancer-aarch64-apple-ios.zip)
- [Download for Apple iOS Simulator on ARM6](https://github.com/null8626/decancer/releases/download/v3.1.2/decancer-aarch64-apple-ios-sim.zip)
- [Download for ARM64 Android](https://github.com/null8626/decancer/releases/download/v3.1.2/decancer-aarch64-linux-android.zip)
- [Download for ARM64 Windows MSVC](https://github.com/null8626/decancer/releases/download/v3.1.2/decancer-aarch64-pc-windows-msvc.zip)
- [Download for ARM64 Linux (kernel 4.1, glibc 2.17+)](https://github.com/null8626/decancer/releases/download/v3.1.2/decancer-aarch64-unknown-linux-gnu.zip)
- [Download for ARM64 Linux with MUSL](https://github.com/null8626/decancer/releases/download/v3.1.2/decancer-aarch64-unknown-linux-musl.zip)
- [Download for ARMv6 Linux (kernel 3.2, glibc 2.17)](https://github.com/null8626/decancer/releases/download/v3.1.2/decancer-arm-unknown-linux-gnueabi.zip)
- [Download for ARMv5TE Linux (kernel 4.4, glibc 2.23)](https://github.com/null8626/decancer/releases/download/v3.1.2/decancer-armv5te-unknown-linux-gnueabi.zip)
- [Download for ARMv7-A Android](https://github.com/null8626/decancer/releases/download/v3.1.2/decancer-armv7-linux-androideabi.zip)
- [Download for ARMv7-A Linux (kernel 4.15, glibc 2.27)](https://github.com/null8626/decancer/releases/download/v3.1.2/decancer-armv7-unknown-linux-gnueabi.zip)
- [Download for ARMv7-A Linux, hardfloat (kernel 3.2, glibc 2.17)](https://github.com/null8626/decancer/releases/download/v3.1.2/decancer-armv7-unknown-linux-gnueabihf.zip)
- [Download for 32-bit Linux w/o SSE (kernel 3.2, glibc 2.17)](https://github.com/null8626/decancer/releases/download/v3.1.2/decancer-i586-unknown-linux-gnu.zip)
- [Download for 32-bit MSVC (Windows 7+)](https://github.com/null8626/decancer/releases/download/v3.1.2/decancer-i686-pc-windows-msvc.zip)
- [Download for 32-bit FreeBSD](https://github.com/null8626/decancer/releases/download/v3.1.2/decancer-i686-unknown-freebsd.zip)
- [Download for 32-bit Linux (kernel 3.2+, glibc 2.17+)](https://github.com/null8626/decancer/releases/download/v3.1.2/decancer-i686-unknown-linux-gnu.zip)
- [Download for PPC64LE Linux (kernel 3.10, glibc 2.17)](https://github.com/null8626/decancer/releases/download/v3.1.2/decancer-powerpc64le-unknown-linux-gnu.zip)
- [Download for RISC-V Linux (kernel 4.20, glibc 2.29)](https://github.com/null8626/decancer/releases/download/v3.1.2/decancer-riscv64gc-unknown-linux-gnu.zip)
- [Download for S390x Linux (kernel 3.2, glibc 2.17)](https://github.com/null8626/decancer/releases/download/v3.1.2/decancer-s390x-unknown-linux-gnu.zip)
- [Download for SPARC Solaris 11, illumos](https://github.com/null8626/decancer/releases/download/v3.1.2/decancer-sparcv9-sun-solaris.zip)
- [Download for Thumb2-mode ARMv7-A Linux with NEON (kernel 4.4, glibc 2.23)](https://github.com/null8626/decancer/releases/download/v3.1.2/decancer-thumbv7neon-unknown-linux-gnueabihf.zip)
- [Download for 64-bit macOS (10.12+, Sierra+)](https://github.com/null8626/decancer/releases/download/v3.1.2/decancer-x86_64-apple-darwin.zip)
- [Download for 64-bit iOS](https://github.com/null8626/decancer/releases/download/v3.1.2/decancer-x86_64-apple-ios.zip)
- [Download for 64-bit MSVC (Windows 7+)](https://github.com/null8626/decancer/releases/download/v3.1.2/decancer-x86_64-pc-windows-msvc.zip)
- [Download for 64-bit FreeBSD](https://github.com/null8626/decancer/releases/download/v3.1.2/decancer-x86_64-unknown-freebsd.zip)
- [Download for 64-bit illumos](https://github.com/null8626/decancer/releases/download/v3.1.2/decancer-x86_64-unknown-illumos.zip)
- [Download for 64-bit Linux (kernel 3.2+, glibc 2.17+)](https://github.com/null8626/decancer/releases/download/v3.1.2/decancer-x86_64-unknown-linux-gnu.zip)
- [Download for 64-bit Linux with MUSL](https://github.com/null8626/decancer/releases/download/v3.1.2/decancer-x86_64-unknown-linux-musl.zip)

### Building from source

Expand Down Expand Up @@ -241,7 +241,7 @@ console.log(cured.toString()) // ---- ***** ----
<br />
<button id="cure" onclick="cure()">cure!</button>
<script type="module">
import init from 'https://cdn.jsdelivr.net/gh/null8626/decancer@v3.1.1/bindings/wasm/bin/decancer.min.js'
import init from 'https://cdn.jsdelivr.net/gh/null8626/decancer@v3.1.2/bindings/wasm/bin/decancer.min.js'
const decancer = await init()
Expand Down
4 changes: 2 additions & 2 deletions core/src/bidi/paragraph.rs
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ impl IsolatingRunSequence {
) -> impl Iterator<Item = usize> + '_ {
let runs = &self.runs[level_run_index..];

(pos..runs[0].end).chain(runs[1..].into_iter().flat_map(Clone::clone))
(pos..runs[0].end).chain(runs[1..].iter().flat_map(Clone::clone))
}

fn iter_backwards_from(
Expand All @@ -390,7 +390,7 @@ impl IsolatingRunSequence {

(current.start..pos)
.rev()
.chain(prev_runs.into_iter().rev().flat_map(Clone::clone))
.chain(prev_runs.iter().rev().flat_map(Clone::clone))
}
}

Expand Down
1 change: 0 additions & 1 deletion core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,6 @@ pub fn cure(input: &str, options: Options) -> Result<CuredString, Error> {
///
/// assert_eq!(cured, "very funny text");
/// assert!(cured.contains("FuNny"));
/// assert_eq!(cured.into_str(), String::from("very funny text"));
/// ```
#[macro_export]
macro_rules! cure {
Expand Down
Loading

0 comments on commit 535f5d9

Please sign in to comment.