summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYusuke Endoh <mame@ruby-lang.org>2022-12-16 02:20:59 +0900
committerYusuke Endoh <mame@ruby-lang.org>2022-12-16 02:21:50 +0900
commitb9ea83fc1c95dba0f5548e6bd1b2fa40c6e65e2d (patch)
treea7988bb8b719e8d216e93de2cc509804677de4f6
parentf2690be746ae0c79d7f1d9eb431eb7cf25761d95 (diff)
Update NEWS.md
Regexp optimization and Wasm support are added.
-rw-r--r--NEWS.md14
-rw-r--r--tool/update-NEWS-refs.rb2
2 files changed, 15 insertions, 1 deletions
diff --git a/NEWS.md b/NEWS.md
index 65aa73e095..95df31809e 100644
--- a/NEWS.md
+++ b/NEWS.md
@@ -253,6 +253,13 @@ Note: We're only listing outstanding class updates.
* Regexp
+ * The cache-based optimization is introduced.
+ Many (but not all) Regexp matching is now in linear time, which
+ will prevent regular expression denial of service (ReDoS)
+ vulnearbility. [[Feature #19104]]
+
+ * Regexp.linear_time? is introduced. [[Feature #19194]]
+
* Regexp.new now supports passing the regexp flags not only as an Integer,
but also as a String. Unknown flags raise ArgumentError.
Otherwise, anything other than `true`, `false`, `nil` or Integer will be warned.
@@ -503,6 +510,10 @@ Note: We're only listing outstanding class updates.
* The following default gems are now bundled gems.
+## Supported platforms
+
+* WebAssembly/WASI is added. [[Feature #18462]]
+
## Compatibility issues
* `String#to_c` currently treat a sequence of underscores as an end of Complex
@@ -692,6 +703,7 @@ The following deprecated APIs are removed.
[Feature #18351]: https://bugs.ruby-lang.org/issues/18351
[Feature #18367]: https://bugs.ruby-lang.org/issues/18367
[Bug #18435]: https://bugs.ruby-lang.org/issues/18435
+[Feature #18462]: https://bugs.ruby-lang.org/issues/18462
[Feature #18481]: https://bugs.ruby-lang.org/issues/18481
[Bug #18487]: https://bugs.ruby-lang.org/issues/18487
[Feature #18564]: https://bugs.ruby-lang.org/issues/18564
@@ -717,6 +729,7 @@ The following deprecated APIs are removed.
[Feature #18822]: https://bugs.ruby-lang.org/issues/18822
[Feature #18824]: https://bugs.ruby-lang.org/issues/18824
[Feature #18832]: https://bugs.ruby-lang.org/issues/18832
+[Feature #18875]: https://bugs.ruby-lang.org/issues/18875
[Feature #18925]: https://bugs.ruby-lang.org/issues/18925
[Feature #18944]: https://bugs.ruby-lang.org/issues/18944
[Feature #18949]: https://bugs.ruby-lang.org/issues/18949
@@ -733,3 +746,4 @@ The following deprecated APIs are removed.
[Feature #19104]: https://bugs.ruby-lang.org/issues/19104
[Feature #19135]: https://bugs.ruby-lang.org/issues/19135
[Feature #19138]: https://bugs.ruby-lang.org/issues/19138
+[Feature #19194]: https://bugs.ruby-lang.org/issues/19194
diff --git a/tool/update-NEWS-refs.rb b/tool/update-NEWS-refs.rb
index 4ee392f90c..dbd262d2e3 100644
--- a/tool/update-NEWS-refs.rb
+++ b/tool/update-NEWS-refs.rb
@@ -4,7 +4,7 @@ orig_src = File.read(File.join(__dir__, "../NEWS.md"))
lines = orig_src.lines(chomp: true)
links = {}
-while lines.last =~ %r{\A\[(?:Feature|Bug) #(\d+)\]:\s+https://bugs\.ruby-lang\.org/issues/\1\z}
+while lines.last =~ %r{\A\[(?:Feature|Bug) #(\d+)\]:\s+https://bugs\.ruby-lang\.org/issues/\1(?:#.*)?\z}
links[$1] = lines.pop
end