Skip to content

Commit ae30eaa

Browse files
authored
Revert "Remove Unicode space handling from <string>.trim()" (#460)
Revert "Remove Unicode space handling from <string>.trim() (#453)" This reverts commit 4631ec6.
1 parent a004222 commit ae30eaa

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/simple/testdata/string_ext.textproto

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -244,15 +244,15 @@ section: {
244244
}
245245
test: {
246246
name: "unicode_space_chars_1"
247-
expr: "'\\u0085\\u00a0\\u1680text'.trim() == '\\u0085\\u00a0\\u1680text'"
247+
expr: "'\\u0085\\u00a0\\u1680text'.trim() == 'text'"
248248
}
249249
test: {
250250
name: "unicode_space_chars_2"
251-
expr: "'text\\u2000\\u2001\\u2002\\u2003\\u2004\\u2004\\u2006\\u2007\\u2008\\u2009'.trim() == 'text\\u2000\\u2001\\u2002\\u2003\\u2004\\u2004\\u2006\\u2007\\u2008\\u2009'"
251+
expr: "'text\\u2000\\u2001\\u2002\\u2003\\u2004\\u2004\\u2006\\u2007\\u2008\\u2009'.trim() == 'text'"
252252
}
253253
test: {
254254
name: "unicode_space_chars_3"
255-
expr: "'\\u200atext\\u2028\\u2029\\u202F\\u205F\\u3000'.trim() == '\\u200atext\\u2028\\u2029\\u202F\\u205F\\u3000'"
255+
expr: "'\\u200atext\\u2028\\u2029\\u202F\\u205F\\u3000'.trim() == 'text'"
256256
}
257257
test: {
258258
name: "unicode_no_trim"

0 commit comments

Comments
 (0)