Page MenuHomePhabricator

[2/n] Native Typeahead - Adding utility file and native regex
ClosedPublic

Authored by przemek on Jan 18 2023, 8:50 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Nov 8, 6:53 PM
Unknown Object (File)
Tue, Oct 29, 5:28 AM
Unknown Object (File)
Tue, Oct 29, 5:28 AM
Unknown Object (File)
Tue, Oct 29, 5:28 AM
Unknown Object (File)
Tue, Oct 29, 5:28 AM
Unknown Object (File)
Tue, Oct 29, 5:28 AM
Unknown Object (File)
Tue, Oct 29, 5:27 AM
Unknown Object (File)
Tue, Oct 29, 5:23 AM

Details

Summary

Native regex is a little bit different than web one as there are no named captruing groups yet on native.
See: https://linear.app/comm/issue/ENG-2456/rewrite-typeahead-regexes-when-named-capturing-groups-are-released-for#comment-4bb6cf1e

Test Plan

Checked if regex works in online editor.

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

Harbormaster returned this revision to the author for changes because remote builds failed.Jan 18 2023, 8:54 AM
Harbormaster failed remote builds in B15437: Diff 21046!

Native regex is a little bit different than web one as there are no named captruing groups yet on native.
See: https://linear.app/comm/issue/ENG-2456/rewrite-typeahead-regexes-when-named-capturing-groups-are-released-for#comment-4bb6cf1e

I would add this as a code comment

I agree it would be good to leave a comment that web is on purposely different

This revision is now accepted and ready to land.Jan 24 2023, 4:05 AM
native/utils/typeahead-utils.js
6

Typo