Skip to content

Commit 54dd939

Browse files
committed
Remove REQUIRE, add [compat] to Project.toml
1 parent 9ccf94c commit 54dd939

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
lines changed

Project.toml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ authors = ["ScottPJones <[email protected]>"]
44
keywords = ["Strings"]
55
license = "MIT"
66
uuid = "e79e7a6a-7bb1-5a4d-9d64-da657b06f53a"
7-
version = "0.3.0"
87

98
[deps]
109
Unicode = "4ec0a83e-493e-50e2-b9ac-8f72acf5a8f5"
@@ -22,3 +21,11 @@ Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
2221

2322
[targets]
2423
test = ["Test", "Random"]
24+
25+
[compat]
26+
julia = "^1.0.0"
27+
ModuleInterfaceTools = "≥ 1.0.0"
28+
MurmurHash3 = "≥ 1.0.0"
29+
StrAPI = "≥ 1.0.0"
30+
ChrBase = "≥ 1.0.0"
31+
CharSetEncodings = "≥ 1.0.0"

REQUIRE

Lines changed: 0 additions & 6 deletions
This file was deleted.

src/support.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,8 @@ function fast_check_string(beg::Ptr{UInt8}, len)
343343
continue
344344
# Check UTF-8 encoding
345345
elseif ch < 0xe0
346+
# Check that not a continuation character
347+
ch < 0xc0 && strerror(StrErrors.NOT_LEAD, pnt - beg, ch)
346348
# 2-byte UTF-8 sequence (i.e. characters 0x80-0x7ff)
347349
(pnt += 1) < fin || strerror(StrErrors.SHORT, pnt - beg, ch)
348350
checkcont(pnt) || strerror(StrErrors.INVALID, pnt - beg - 1, ch)

0 commit comments

Comments
 (0)