Skip to content

Commit 352d3d0

Browse files
committed
Duplicate initial character to prevent FrozenError
1 parent 3da0dc1 commit 352d3d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/unicode_normalize/normalize.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def self.nfc_one(string)
115115
end
116116
end
117117

118-
result = start
118+
result = start.dup
119119
until accents.empty?
120120
start = accents[0]
121121
last_class = CLASS_TABLE[start]-1

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy