1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 21:08:12 +00:00
serenity/Userland/Libraries
Linus Groh e46fa3ac8b LibJS: Keep RegExp.exec() results in correct order
By using regex::AllFlags::SkipTrimEmptyMatches we get a null string for
unmatched capture groups, which we then turn into an undefined entry in
the result array instead of putting all matches first and appending
undefined for the remaining number of capture groups - e.g. for

    /foo(ba((r)|(z)))/.exec("foobaz")

we now return

    ["foobaz", "baz", "z", undefined, "z"]

and not [

    ["foobaz", "baz", "z", "z", undefined]

Fixes part of #6042.

Also happens to fix selecting an element by ID using jQuery's $("#foo").
2021-04-03 16:34:34 +02:00
..
LibArchive LibArchive: Bounds check header offsets in Zip Parser 2021-03-27 19:44:16 +01:00
LibAudio Everywhere: rename 'Sample' type to 'Frame' 2021-03-27 10:20:55 +01:00
LibC LibC+ping: Move internet_checksum to serenity header 2021-03-31 23:42:24 +02:00
LibChess Everywhere: Remove klog(), dbg() and purge all LogStream usage :^) 2021-03-12 17:29:37 +01:00
LibCompress LibCompress: Convert GzipDecompressor from recursive to iterative 2021-03-21 15:46:35 +01:00
LibCore LibCore: Add Core::File is_device() helpers 2021-03-30 11:29:52 +02:00
LibCoreDump LibCoreDump+CrashDaemon: Compress coredumps 2021-03-28 20:42:33 +02:00
LibCpp HackStudio+LanguageServers/Cpp: Show scope of symbols in Locator 2021-03-23 18:32:39 +01:00
LibCrypt Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00
LibCrypto LibCrypto: Avoid overly big allocs in intermediate ModularPower results 2021-04-03 11:22:01 +02:00
LibDebug Everywhere: Remove pessimizing and redundant move() 2021-03-17 16:30:15 +01:00
LibDesktop Everywhere: Rename ASSERT => VERIFY 2021-02-23 20:56:54 +01:00
LibDiff Everywhere: Rename ASSERT => VERIFY 2021-02-23 20:56:54 +01:00
LibELF LibElf+readelf: Parse ELFs with no program headers correctly 2021-03-29 19:57:19 +02:00
LibGemini Everywhere: Rename ASSERT => VERIFY 2021-02-23 20:56:54 +01:00
LibGfx WindowServer+LibGfx: Rename menu_bar => menubar 2021-03-31 23:38:26 +02:00
LibGUI LibGUI: Subtract layout margin when placing items along secondary axis 2021-04-02 23:33:17 +02:00
LibHTTP LibHTTP: Add support for the deflate content encoding 2021-03-22 12:45:34 +01:00
LibImageDecoderClient Everywhere: Remove pessimizing and redundant move() 2021-03-17 16:30:15 +01:00
LibIPC Everywhere: Rename ASSERT => VERIFY 2021-02-23 20:56:54 +01:00
LibJS LibJS: Keep RegExp.exec() results in correct order 2021-04-03 16:34:34 +02:00
LibKeyboard LibKeyboard: Mark CharacterMap::get_char as const 2021-04-03 11:57:23 +02:00
LibLine LibLine: Make the DSR response parser a bit more robust 2021-03-16 21:51:49 +01:00
LibM LibM: Implement fmin/fmax 2021-03-15 22:02:38 +01:00
LibMarkdown LibMarkdown: Remove unused Paragraph::add_line() declaration 2021-03-26 22:58:36 +01:00
LibPCIDB Everywhere: Rename ASSERT => VERIFY 2021-02-23 20:56:54 +01:00
LibProtocol Everywhere: Rename ASSERT => VERIFY 2021-02-23 20:56:54 +01:00
LibPthread Everywhere: Rename ASSERT => VERIFY 2021-02-23 20:56:54 +01:00
LibRegex LibRegex: Test alternatives in the expected order 2021-04-01 21:55:47 +02:00
LibSymbolClient SymbolServer+LibSymbolClient: Just do one symbol per IPC message 2021-02-04 23:35:10 +01:00
LibSyntax Everywhere: Rename ASSERT => VERIFY 2021-02-23 20:56:54 +01:00
LibSystem CMake: Make libc.a self-contained 2021-03-19 22:55:53 +01:00
LibTest LibTest: Add Test::Counts 2021-03-24 20:38:20 +01:00
LibTextCodec LibTextCodec: Make UTF16BEDecoder read only up to an even offset 2021-03-15 16:08:12 +01:00
LibThread Everywhere: Rename ASSERT => VERIFY 2021-02-23 20:56:54 +01:00
LibTLS LibTLS: Make the TLS connection options user-configurable 2021-04-03 11:22:01 +02:00
LibTTF LibGfx: Rename 32-bit BitmapFormats to BGRA8888 and BGRx888x 2021-03-16 11:50:03 +01:00
LibVT Everywhere: Rename "logo" key to "super" key 2021-03-11 18:55:16 +01:00
LibWeb LibWeb: Add support for HTML input type=radio 2021-04-03 15:39:46 +02:00
LibX86 LibX86: Don't use "if (foo) [[unlikely]] { }" for now (to please clang) 2021-03-09 17:47:28 +01:00
CMakeLists.txt Libraries: Rename LibTar to LibArchive 2021-03-23 16:09:36 +01:00